1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 18:31:01 +08:00

Remove superfluous IsRepeat field

This commit is contained in:
Bartłomiej Dach
2020-08-18 19:34:44 +02:00
Unverified
parent f22050c975
commit c6a640db55
3 changed files with 11 additions and 13 deletions
@@ -7,13 +7,11 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
{
public readonly double Difficulty;
public readonly double Ratio;
public readonly bool IsRepeat;
public TaikoDifficultyHitObjectRhythm(int numerator, int denominator, double difficulty, bool isRepeat)
public TaikoDifficultyHitObjectRhythm(int numerator, int denominator, double difficulty)
{
Ratio = numerator / (double)denominator;
Difficulty = difficulty;
IsRepeat = isRepeat;
}
}
}
@@ -92,7 +92,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Skills
TaikoDifficultyHitObject hitobject = (TaikoDifficultyHitObject)current;
notesSinceRhythmChange += 1;
if (hitobject.Rhythm.IsRepeat)
if (hitobject.Rhythm.Difficulty == 0.0)
{
return 0.0;
}
@@ -26,15 +26,15 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
private readonly TaikoDifficultyHitObjectRhythm[] commonRhythms =
{
new TaikoDifficultyHitObjectRhythm(1, 1, 0.0, true),
new TaikoDifficultyHitObjectRhythm(2, 1, 0.3, false),
new TaikoDifficultyHitObjectRhythm(1, 2, 0.5, false),
new TaikoDifficultyHitObjectRhythm(3, 1, 0.3, false),
new TaikoDifficultyHitObjectRhythm(1, 3, 0.35, false),
new TaikoDifficultyHitObjectRhythm(3, 2, 0.6, false),
new TaikoDifficultyHitObjectRhythm(2, 3, 0.4, false),
new TaikoDifficultyHitObjectRhythm(5, 4, 0.5, false),
new TaikoDifficultyHitObjectRhythm(4, 5, 0.7, false)
new TaikoDifficultyHitObjectRhythm(1, 1, 0.0),
new TaikoDifficultyHitObjectRhythm(2, 1, 0.3),
new TaikoDifficultyHitObjectRhythm(1, 2, 0.5),
new TaikoDifficultyHitObjectRhythm(3, 1, 0.3),
new TaikoDifficultyHitObjectRhythm(1, 3, 0.35),
new TaikoDifficultyHitObjectRhythm(3, 2, 0.6),
new TaikoDifficultyHitObjectRhythm(2, 3, 0.4),
new TaikoDifficultyHitObjectRhythm(5, 4, 0.5),
new TaikoDifficultyHitObjectRhythm(4, 5, 0.7)
};
public TaikoDifficultyCalculator(Ruleset ruleset, WorkingBeatmap beatmap)