mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:23:22 +08:00
Extract method for marking cheese
This commit is contained in:
parent
292d38362c
commit
ff44437706
@ -48,10 +48,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
|
|||||||
if (repeatedLength < roll_min_repetitions)
|
if (repeatedLength < roll_min_repetitions)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (int j = repetitionStart; j < i; j++)
|
markObjectsAsCheese(repetitionStart, i);
|
||||||
{
|
|
||||||
hitObjects[j].StaminaCheese = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,11 +77,14 @@ namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
|
|||||||
if (tlLength < tl_min_repetitions)
|
if (tlLength < tl_min_repetitions)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (int j = Math.Max(0, i - tlLength); j < i; j++)
|
markObjectsAsCheese(Math.Max(0, i - tlLength), i);
|
||||||
{
|
|
||||||
hitObjects[j].StaminaCheese = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void markObjectsAsCheese(int start, int end)
|
||||||
|
{
|
||||||
|
for (int i = start; i < end; ++i)
|
||||||
|
hitObjects[i].StaminaCheese = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user