// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTailJudgement : ManiaJudgement { /// /// Whether the hold note has been released too early and shouldn't give full score for the release. /// public bool HasBroken; protected override int NumericResultFor(HitResult result) { switch (result) { default: return base.NumericResultFor(result); case HitResult.Great: case HitResult.Perfect: return base.NumericResultFor(HasBroken ? HitResult.Good : result); } } protected override int NumericResultForAccuracy(HitResult result) { switch (result) { default: return base.NumericResultForAccuracy(result); case HitResult.Great: case HitResult.Perfect: return base.NumericResultForAccuracy(HasBroken ? HitResult.Good : result); } } } }