1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:47:46 +08:00

improve readability

This commit is contained in:
tsunyoku 2024-05-20 18:45:20 +01:00
parent 264afd0994
commit f4c154f760

View File

@ -71,10 +71,13 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators
}
else
{
if (currObj.BaseObject is Slider && mods.Any(m => m is OsuModClassic cl && cl.NoSliderHeadAccuracy.Value)) // bpm change is into slider, this is easy acc window without slider head accuracy
bool noSliderHeadAccuracy =
mods.Any(m => m is OsuModClassic cl && cl.NoSliderHeadAccuracy.Value);
if (noSliderHeadAccuracy && currObj.BaseObject is Slider) // bpm change is into slider, this is easy acc window without slider head accuracy
effectiveRatio *= 0.125;
if (prevObj.BaseObject is Slider && mods.Any(m => m is OsuModClassic cl && cl.NoSliderHeadAccuracy.Value)) // bpm change was from a slider, this is easier typically than circle -> circle without slider head accuracy
if (noSliderHeadAccuracy && prevObj.BaseObject is Slider) // bpm change was from a slider, this is easier typically than circle -> circle without slider head accuracy
effectiveRatio *= 0.25;
if (previousIslandSize == islandSize) // repeated island size (ex: triplet -> triplet)