1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 13:15:08 +08:00

Inline same parity penalty

This commit is contained in:
Bartłomiej Dach 2020-08-22 17:15:08 +02:00
parent ec99fcd7ab
commit cb3fef7616

View File

@ -54,8 +54,8 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
else if ((monoHistory[^1] + currentMonoLength) % 2 == 0)
{
// The last streak in the history is guaranteed to be a different type to the current streak.
// If the total number of notes in the two streaks is even, apply a penalty.
objectStrain *= sameParityPenalty();
// If the total number of notes in the two streaks is even, nullify this object's strain.
objectStrain = 0.0;
}
objectStrain *= repetitionPenalties();
@ -70,11 +70,6 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
return objectStrain;
}
/// <summary>
/// The penalty to apply when the total number of notes in the two most recent colour streaks is even.
/// </summary>
private double sameParityPenalty() => 0.0;
/// <summary>
/// The penalty to apply due to the length of repetition in colour streaks.
/// </summary>