2019-01-24 08:43:03 +00:00
|
|
|
// 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.
|
2018-08-02 07:44:01 +00:00
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2018-08-02 11:36:54 +00:00
|
|
|
using osu.Game.Rulesets.Judgements;
|
2018-08-02 07:44:01 +00:00
|
|
|
using osu.Game.Rulesets.Mania.Judgements;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
|
|
|
{
|
|
|
|
public class TailNote : Note
|
|
|
|
{
|
2023-01-19 11:53:35 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Lenience of release hit windows. This is to make cases where the hold note release
|
|
|
|
/// is timed alongside presses of other hit objects less awkward.
|
|
|
|
/// Todo: This shouldn't exist for non-LegacyBeatmapDecoder beatmaps
|
|
|
|
/// </summary>
|
|
|
|
public const double RELEASE_WINDOW_LENIENCE = 1.5;
|
|
|
|
|
2018-08-06 02:50:18 +00:00
|
|
|
public override Judgement CreateJudgement() => new ManiaJudgement();
|
2023-01-19 11:53:35 +00:00
|
|
|
|
|
|
|
public override double MaximumJudgementOffset => base.MaximumJudgementOffset * RELEASE_WINDOW_LENIENCE;
|
2018-08-02 07:44:01 +00:00
|
|
|
}
|
|
|
|
}
|