mirror of https://github.com/ppy/osu
26 lines
856 B
C#
26 lines
856 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.
|
|
|
|
#nullable disable
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Scoring
|
|
{
|
|
public class ManiaHealthProcessor : DrainingHealthProcessor
|
|
{
|
|
/// <inheritdoc/>
|
|
public ManiaHealthProcessor(double drainStartTime, double drainLenience = 0)
|
|
: base(drainStartTime, drainLenience)
|
|
{
|
|
}
|
|
|
|
protected override HitResult GetSimulatedHitResult(Judgement judgement)
|
|
{
|
|
// Users are not expected to attain perfect judgements for all notes due to the tighter hit window.
|
|
return judgement.MaxResult == HitResult.Perfect ? HitResult.Great : judgement.MaxResult;
|
|
}
|
|
}
|
|
}
|