mirror of
https://github.com/ppy/osu
synced 2025-03-03 18:10:28 +00:00
23 lines
686 B
C#
23 lines
686 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Scoring
|
|
{
|
|
public class TaikoHealthProcessor : HealthProcessor
|
|
{
|
|
/// <summary>
|
|
/// Taiko fails at the end of the map if the player has not half-filled their HP bar.
|
|
/// </summary>
|
|
protected override bool DefaultFailCondition => JudgedHits == MaxHits && Health.Value <= 0.5;
|
|
|
|
protected override void Reset(bool storeResults)
|
|
{
|
|
base.Reset(storeResults);
|
|
|
|
Health.Value = 0;
|
|
}
|
|
}
|
|
}
|