1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Update ScoreProcessor to use new defined helper methods

This commit is contained in:
Salman Ahmed 2022-03-18 15:22:53 +03:00
parent fc576b1369
commit 5ec2d86c09

View File

@ -166,20 +166,10 @@ namespace osu.Game.Rulesets.Scoring
if (!result.Type.IsScorable()) if (!result.Type.IsScorable())
return; return;
if (result.Type.AffectsCombo()) if (result.Type.IncreasesCombo())
{ Combo.Value++;
switch (result.Type) else if (result.Type.BreaksCombo())
{ Combo.Value = 0;
case HitResult.Miss:
case HitResult.LargeTickMiss:
Combo.Value = 0;
break;
default:
Combo.Value++;
break;
}
}
double scoreIncrease = result.Type.IsHit() ? result.Judgement.NumericResultFor(result) : 0; double scoreIncrease = result.Type.IsHit() ? result.Judgement.NumericResultFor(result) : 0;