From 4bede4b6573b32cd6c989966c37746fcf717f440 Mon Sep 17 00:00:00 2001 From: Derrick Timmermans Date: Sat, 21 Dec 2024 21:29:34 +0800 Subject: [PATCH] Multiply hold release window by 1.5 --- .../Scoring/SentakkiHoldReleaseWindows.cs | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 osu.Game.Rulesets.Sentakki/Scoring/SentakkiHoldReleaseWindows.cs diff --git a/osu.Game.Rulesets.Sentakki/Scoring/SentakkiHoldReleaseWindows.cs b/osu.Game.Rulesets.Sentakki/Scoring/SentakkiHoldReleaseWindows.cs new file mode 100644 index 000000000..da8c23a23 --- /dev/null +++ b/osu.Game.Rulesets.Sentakki/Scoring/SentakkiHoldReleaseWindows.cs @@ -0,0 +1,37 @@ +using osu.Game.Rulesets.Scoring; + +namespace osu.Game.Rulesets.Sentakki.Scoring; + +public class SentakkiHoldReleaseWindows : SentakkiHitWindows +{ + private static readonly DifficultyRange[] default_ranges = + { + SimpleDifficultyRange(HitResult.Miss, 13.5 * timing_unit), + SimpleDifficultyRange(HitResult.Ok, 13.5 * timing_unit), + SimpleDifficultyRange(HitResult.Good, 9 * timing_unit), + SimpleDifficultyRange(HitResult.Great, 4.5 * timing_unit), + SimpleDifficultyRange(HitResult.Perfect, 1.5 * timing_unit), + }; + + private static readonly DifficultyRange[] maji_ranges = + { + SimpleDifficultyRange(HitResult.Miss, 9 * timing_unit), + SimpleDifficultyRange(HitResult.Ok, 9 * timing_unit), + SimpleDifficultyRange(HitResult.Good, 4.5 * timing_unit), + SimpleDifficultyRange(HitResult.Great, 3 * timing_unit), + SimpleDifficultyRange(HitResult.Perfect, 1.5 * timing_unit), + }; + + private static readonly DifficultyRange[] gachi_ranges = + { + SimpleDifficultyRange(HitResult.Miss, 9 * timing_unit), + SimpleDifficultyRange(HitResult.Ok, 9 * timing_unit), + SimpleDifficultyRange(HitResult.Good, 4.5 * timing_unit), + SimpleDifficultyRange(HitResult.Great, 1.5 * timing_unit), + SimpleDifficultyRange(HitResult.Perfect, 1.5 * timing_unit), + }; + + protected override DifficultyRange[] GetDefaultRanges() => default_ranges; + protected override DifficultyRange[] GetMajiRanges() => maji_ranges; + protected override DifficultyRange[] GetGachiRanges() => gachi_ranges; +}