1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 23:42:55 +08:00

Even better readability

This commit is contained in:
Dan Balasescu 2024-07-16 12:23:46 +09:00
parent fcc8e7be8a
commit ced11e6949
No known key found for this signature in database

View File

@ -192,7 +192,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
// This percentage only considers HitCircles of any value - in this part of the calculation we focus on hitting the timing hit window.
double betterAccuracyPercentage;
int amountHitObjectsWithAccuracy = attributes.HitCircleCount;
if (score.Mods.All(h => h is not OsuModClassic cl || !cl.NoSliderHeadAccuracy.Value))
if (score.Mods.OfType<OsuModClassic>().All(m => !m.NoSliderHeadAccuracy.Value))
amountHitObjectsWithAccuracy += attributes.SliderCount;
if (amountHitObjectsWithAccuracy > 0)