mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 23:15:14 +08:00
Move HasFailed override to base ScoreProcessor
This commit is contained in:
parent
3af8345068
commit
c07e831b17
@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the score is in a failed state.
|
/// Whether the score is in a failed state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual bool HasFailed => false;
|
public virtual bool HasFailed => Health.Value == Health.MinValue;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this ScoreProcessor has already triggered the failed state.
|
/// Whether this ScoreProcessor has already triggered the failed state.
|
||||||
@ -143,8 +143,6 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected readonly List<Judgement> Judgements = new List<Judgement>();
|
protected readonly List<Judgement> Judgements = new List<Judgement>();
|
||||||
|
|
||||||
public override bool HasFailed => Health.Value == Health.MinValue;
|
|
||||||
|
|
||||||
protected ScoreProcessor()
|
protected ScoreProcessor()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -156,7 +154,6 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
rulesetContainer.OnJudgement += AddJudgement;
|
rulesetContainer.OnJudgement += AddJudgement;
|
||||||
|
|
||||||
ComputeTargets(rulesetContainer.Beatmap);
|
ComputeTargets(rulesetContainer.Beatmap);
|
||||||
|
|
||||||
Reset();
|
Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user