Skip to content

Commit

Permalink
Add dice info stat calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Nov 11, 2023
1 parent 00f55b8 commit 5ae5116
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,31 @@ private async Task ApplyTemporaryStats(IFieldUser user)
if (AttackSpeed < 10)
AttackSpeed += (int)((user.Character.TemporaryStats[TemporaryStatType.Frozen]?.Value ?? 0) * (10 - AttackSpeed) / 100d);;
}

if (user.Character.TemporaryStats[TemporaryStatType.Dice] != null)
{
MaxHPr += user.Character.TemporaryStats.DiceInfo.MHPr;
MaxMPr += user.Character.TemporaryStats.DiceInfo.MMPr;
Cr += user.Character.TemporaryStats.DiceInfo.Cr;
CDMin += user.Character.TemporaryStats.DiceInfo.CDMin;
EVAr += user.Character.TemporaryStats.DiceInfo.EVAr;
Ar += user.Character.TemporaryStats.DiceInfo.Ar;
Er += user.Character.TemporaryStats.DiceInfo.Er;
PDDr += user.Character.TemporaryStats.DiceInfo.PDDr;
MDDr += user.Character.TemporaryStats.DiceInfo.MDDr;
// PDr += user.Character.TemporaryStats.DiceInfo.PDr;
// MDr += user.Character.TemporaryStats.DiceInfo.MDr;
// DIPr += user.Character.TemporaryStats.DiceInfo.DIPr;
PDamR += user.Character.TemporaryStats.DiceInfo.PDamr;
MDamR += user.Character.TemporaryStats.DiceInfo.MDamr;
PADr += user.Character.TemporaryStats.DiceInfo.PADr;
MADr += user.Character.TemporaryStats.DiceInfo.MADr;
// EXPr += user.Character.TemporaryStats.DiceInfo.EXPr;
// IMPr += user.Character.TemporaryStats.DiceInfo.IMPr;
// ASRr += user.Character.TemporaryStats.DiceInfo.ASRr;
// TERr += user.Character.TemporaryStats.DiceInfo.TERr;
// MESOr += user.Character.TemporaryStats.DiceInfo.MESOr;
}
}

private async Task<Tuple<int, int>> GetMastery(IFieldUser user, int skillID)
Expand Down

0 comments on commit 5ae5116

Please sign in to comment.