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

consolidated if statements for getting effectiveMissCount and countSliderEndsDropped

This commit is contained in:
finadoggie 2024-10-12 15:34:04 -07:00
parent 3ac6a9f0ae
commit 29b1697a70
No known key found for this signature in database

View File

@ -48,13 +48,13 @@ namespace osu.Game.Rulesets.Osu.Difficulty
countMiss = score.Statistics.GetValueOrDefault(HitResult.Miss);
countLargeTickMiss = score.Statistics.GetValueOrDefault(HitResult.LargeTickMiss);
if (!usingClassicSliderAccuracy)
countSliderEndsDropped = osuAttributes.SliderCount - score.Statistics.GetValueOrDefault(HitResult.SliderTailHit);
if (usingClassicSliderAccuracy)
effectiveMissCount = calculateEffectiveMissCount(osuAttributes);
else
{
countSliderEndsDropped = osuAttributes.SliderCount - score.Statistics.GetValueOrDefault(HitResult.SliderTailHit);
effectiveMissCount = countMiss;
}
double multiplier = PERFORMANCE_BASE_MULTIPLIER;