1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 08:02:55 +08:00

Keep track of maximum hits + combo at base ScoreProcessor level

This commit is contained in:
smoogipooo 2017-09-12 19:48:17 +09:00
parent c7677d896a
commit 195c2d7a31

View File

@ -143,6 +143,11 @@ namespace osu.Game.Rulesets.Scoring
/// </summary>
protected readonly List<Judgement> Judgements = new List<Judgement>();
private int maxHits;
private int maxCombo;
private int hits;
protected ScoreProcessor()
{
}
@ -154,6 +159,10 @@ namespace osu.Game.Rulesets.Scoring
rulesetContainer.OnJudgement += AddJudgement;
ComputeTargets(rulesetContainer.Beatmap);
maxCombo = HighestCombo;
maxHits = hits;
Reset();
}
@ -173,8 +182,6 @@ namespace osu.Game.Rulesets.Scoring
{
switch (judgement.Result)
{
case HitResult.None:
break;
case HitResult.Miss:
Combo.Value = 0;
break;
@ -184,6 +191,9 @@ namespace osu.Game.Rulesets.Scoring
}
}
if (judgement.AffectsCombo && judgement.IsHit)
hits++;
Judgements.Add(judgement);
OnNewJudgement(judgement);