Skip to content

Commit

Permalink
Fixed inverted max min
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Jun 26, 2024
1 parent f6f9708 commit dd117e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function getAnimationChanges(situation, data) {
function getDurationMultiplier(percentHealth) {
return (
1 +
((Math.max(Math.max(0.1, percentHealth), 0.5) - 0.1) * (4 - 1)) /
((Math.min(Math.max(0.1, percentHealth), 0.5) - 0.1) * (4 - 1)) /
(0.5 - 0.1)
);
}
Expand Down

0 comments on commit dd117e4

Please sign in to comment.