Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
修正错误的计算
Browse files Browse the repository at this point in the history
  • Loading branch information
BAKAOLC committed Dec 14, 2024
1 parent 3d64064 commit d831020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public CriticalHit(int level, int value)
CalcValue = Math.Floor(Fn * ((double)Value - Sub) / Div);
Rate = (50 + CalcValue) / 10;
Bonus = (1400 + CalcValue) / 10;
Expected = Rate * (Bonus - 100);
Expected = Rate * (Bonus - 100) / 100;
PrevValue = (int)Math.Ceiling(Sub + Div * CalcValue / Fn);
NextValue = (int)Math.Ceiling(Sub + Div * (1 + CalcValue) / Fn);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public DirectHit(int level, int value)
CalcValue = Math.Floor(Fn * ((double)Value - Sub) / Div);
Rate = CalcValue / 10;
Bonus = 125;
Expected = Rate * 25;
Expected = Rate * 0.25;
PrevValue = (int)Math.Floor(Sub + Div * CalcValue / Fn);
NextValue = (int)Math.Ceiling(Sub + Div * (1 + CalcValue) / Fn);
}
Expand Down

0 comments on commit d831020

Please sign in to comment.