Skip to content

Commit 60e847b

Browse files
authored
Merge pull request ppy#6 from Lawtrohux/speedbonus-hotfix
Speedbonus Hotfix
2 parents d260440 + ff98014 commit 60e847b

File tree

1 file changed

+5
-5
lines changed
  • osu.Game.Rulesets.Taiko/Difficulty/Skills

1 file changed

+5
-5
lines changed

osu.Game.Rulesets.Taiko/Difficulty/Skills/Stamina.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ private double cheesePenalty(double notePairDuration)
106106
/// <param name="notePairDuration">The duration between the current and previous note hit using the hand indicated by <see cref="hand"/>.</param>
107107
private double speedBonus(double notePairDuration)
108108
{
109-
if (notePairDuration >= 200) return 0;
110-
111-
double bonus = 200 - notePairDuration;
112-
bonus *= bonus;
113-
return bonus / 100000;
109+
if (notePairDuration >= 200) return 0;
110+
111+
double bonusOffset = 1 / Math.Pow(1.01, 200);
112+
double bonus = 1 / Math.Pow(1.01, 200);
113+
return bonus - bonusOffset;
114114
}
115115
}
116116
}

0 commit comments

Comments
 (0)