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
1 changed files with 4 additions and 14 deletions

View File

@ -166,20 +166,10 @@ protected sealed override void ApplyResultInternal(JudgementResult result)
if (!result.Type.IsScorable())
return;
if (result.Type.AffectsCombo())
{
switch (result.Type)
{
case HitResult.Miss:
case HitResult.LargeTickMiss:
Combo.Value = 0;
break;
default:
Combo.Value++;
break;
}
}
if (result.Type.IncreasesCombo())
Combo.Value++;
else if (result.Type.BreaksCombo())
Combo.Value = 0;
double scoreIncrease = result.Type.IsHit() ? result.Judgement.NumericResultFor(result) : 0;