mirror of
https://github.com/ppy/osu.git
synced 2024-12-25 23:55:35 +08:00
11e1b22bf5
We want to access this property for computing lifetime
25 lines
880 B
C#
25 lines
880 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.Mania.Judgements;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
|
{
|
|
public class TailNote : Note
|
|
{
|
|
/// <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;
|
|
|
|
public override Judgement CreateJudgement() => new ManiaJudgement();
|
|
|
|
public override double MaximumJudgementOffset => base.MaximumJudgementOffset * RELEASE_WINDOW_LENIENCE;
|
|
}
|
|
}
|