-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implemention of the No Release mod
This commit adds a new osu!mania mod No Release that relaxes tail judgements. The current implementation automatically awards Perfect (or Meh if the hold note is broken midway) for a hold note tail at the end of its Perfect window, as long as it is held by then. Tests are pending for the next commit.
- Loading branch information
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// 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.Framework.Localisation; | ||
using osu.Game.Rulesets.Mania.Objects.Drawables; | ||
using osu.Game.Rulesets.Mods; | ||
using osu.Game.Rulesets.Objects.Drawables; | ||
using osu.Game.Rulesets.Scoring; | ||
|
||
namespace osu.Game.Rulesets.Mania.Mods | ||
{ | ||
public class ManiaModNoRelease : Mod, IApplicableToDrawableHitObject | ||
{ | ||
public override string Name => "No Release"; | ||
|
||
public override string Acronym => "NR"; | ||
|
||
public override LocalisableString Description => "No more timing the end of hold notes."; | ||
|
||
public override double ScoreMultiplier => 0.9; | ||
|
||
public override ModType Type => ModType.DifficultyReduction; | ||
|
||
public void ApplyToDrawableHitObject(DrawableHitObject drawable) | ||
{ | ||
if (drawable is DrawableHoldNote hold) | ||
{ | ||
hold.HitObjectApplied += dho => | ||
{ | ||
((DrawableHoldNote)dho).Tail.LateReleaseResult = HitResult.Perfect; | ||
}; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters