Skip to content

Commit

Permalink
Use miss count for effective miss count
Browse files Browse the repository at this point in the history
No need to estimate misses for non-CL scores.
  • Loading branch information
Finadoggie committed Mar 22, 2024
1 parent 3dafdc0 commit 8408455
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game.Rulesets.Osu/Difficulty/OsuPerformanceCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ protected override PerformanceAttributes CreatePerformanceAttributes(ScoreInfo s
countOk = score.Statistics.GetValueOrDefault(HitResult.Ok);
countMeh = score.Statistics.GetValueOrDefault(HitResult.Meh);
countMiss = score.Statistics.GetValueOrDefault(HitResult.Miss);
effectiveMissCount = calculateEffectiveMissCount(osuAttributes);
if (!score.Mods.Any(h => h is OsuModClassic cl && cl.NoSliderHeadAccuracy.Value))
effectiveMissCount = countMiss;
else
effectiveMissCount = calculateEffectiveMissCount(osuAttributes);

double multiplier = PERFORMANCE_BASE_MULTIPLIER;

Expand Down

0 comments on commit 8408455

Please sign in to comment.