1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 11:12:59 +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) else if ((monoHistory[^1] + currentMonoLength) % 2 == 0)
{ {
// The last streak in the history is guaranteed to be a different type to the current streak. // 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. // If the total number of notes in the two streaks is even, nullify this object's strain.
objectStrain *= sameParityPenalty(); objectStrain = 0.0;
} }
objectStrain *= repetitionPenalties(); objectStrain *= repetitionPenalties();
@ -70,11 +70,6 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
return objectStrain; 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> /// <summary>
/// The penalty to apply due to the length of repetition in colour streaks. /// The penalty to apply due to the length of repetition in colour streaks.
/// </summary> /// </summary>