Skip to content

Commit

Permalink
Add numeric results to fever processor
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Dec 23, 2023
1 parent daf4d13 commit 595ea0f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion osu.Game.Rulesets.Rush/UI/Fever/FeverProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,28 @@ private static float feverIncreaseFor(JudgementResult result)
if (result.Judgement is RushIgnoreJudgement || result.Judgement is RushFeverJudgement)
return 0;

return (float)result.Judgement.NumericResultFor(result) / result.Judgement.MaxNumericResult / perfect_hits_to_fill;
return (float)NumericResultFor(result.Type) / NumericResultFor(HitResult.Great) / perfect_hits_to_fill;
}

public static int NumericResultFor(HitResult result)
{
switch (result)
{
default:
return 0;

case HitResult.Good:
return 200;

case HitResult.Great:
return 300;

case HitResult.SmallBonus:
return 10;

case HitResult.LargeBonus:
return 50;
}
}
}
}

0 comments on commit 595ea0f

Please sign in to comment.