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

Invert condition to reduce number of brain flips required

This commit is contained in:
Dan Balasescu 2024-07-16 12:09:09 +09:00
parent b2722521fa
commit fcc8e7be8a
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.Any(h => h is OsuModClassic cl && cl.NoSliderHeadAccuracy.Value))
if (score.Mods.All(h => h is not OsuModClassic cl || !cl.NoSliderHeadAccuracy.Value))
amountHitObjectsWithAccuracy += attributes.SliderCount;
if (amountHitObjectsWithAccuracy > 0)