1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-05 06:32:55 +08:00

Flatten speed bonus for stamina

This commit is contained in:
vun 2022-06-22 17:17:19 +08:00
parent 3529514587
commit c5fd48372b

View File

@ -13,10 +13,10 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
/// <summary> /// <summary>
/// Applies a speed bonus dependent on the time since the last hit performed using this key. /// Applies a speed bonus dependent on the time since the last hit performed using this key.
/// </summary> /// </summary>
/// <param name="notePairDuration">The duration between the current and previous note hit using the same key.</param> /// <param name="interval">The interval between the current and previous note hit using the same key.</param>
private static double speedBonus(double notePairDuration) private static double speedBonus(double interval)
{ {
return Math.Pow(0.4, notePairDuration / 1000); return Math.Pow(0.8, interval / 1000);
} }
/// <summary> /// <summary>
@ -40,9 +40,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Evaluators
return 0.0; return 0.0;
} }
double objectStrain = 0; double objectStrain = 0.85;
// Console.WriteLine(speedBonus(taikoCurrent.StartTime - keyPrevious.StartTime)); objectStrain *= speedBonus(taikoCurrent.StartTime - keyPrevious.StartTime);
objectStrain += speedBonus(taikoCurrent.StartTime - keyPrevious.StartTime);
return objectStrain; return objectStrain;
} }
} }