mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 00:43:22 +08:00
Inline same parity penalty
This commit is contained in:
parent
ec99fcd7ab
commit
cb3fef7616
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user