mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 15:33:21 +08:00
Fix speed bonus
This commit is contained in:
parent
8a17b509d9
commit
8beb5568b8
@ -17,10 +17,11 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
|
|||||||
private static double speedBonus(double interval)
|
private static double speedBonus(double interval)
|
||||||
{
|
{
|
||||||
// Cap to 600bpm 1/4, 25ms note interval, 50ms key interval
|
// Cap to 600bpm 1/4, 25ms note interval, 50ms key interval
|
||||||
// This is a measure to prevent absurdly high speed maps giving infinity/negative values.
|
// This is temporary measure to prevent mono abuses. Once that is properly addressed, interval will be
|
||||||
interval = Math.Max(interval, 100);
|
// capped at a very small value to avoid infinite/negative speed bonuses.
|
||||||
|
interval = Math.Max(interval, 50);
|
||||||
|
|
||||||
return 60 / interval;
|
return 30 / interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user