From 8df3c3f736df7bc1b34a2ecfd1efdf06f7a1b6af Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Wed, 26 Apr 2017 16:28:53 +0900 Subject: [PATCH] Adjust Swell hit speed. --- osu.Game.Rulesets.Taiko/Replays/TaikoAutoReplay.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Taiko/Replays/TaikoAutoReplay.cs b/osu.Game.Rulesets.Taiko/Replays/TaikoAutoReplay.cs index df862a5cb0..d78e8af589 100644 --- a/osu.Game.Rulesets.Taiko/Replays/TaikoAutoReplay.cs +++ b/osu.Game.Rulesets.Taiko/Replays/TaikoAutoReplay.cs @@ -11,6 +11,8 @@ namespace osu.Game.Rulesets.Taiko.Replays { public class TaikoAutoReplay : Replay { + private const double swell_hit_speed = 50; + private readonly Beatmap beatmap; public TaikoAutoReplay(Beatmap beatmap) @@ -45,12 +47,13 @@ namespace osu.Game.Rulesets.Taiko.Replays int d = 0; int count = 0; int req = swell.RequiredHits; - double hitRate = swell.Duration / req; + double hitRate = Math.Min(swell_hit_speed, swell.Duration / req); for (double j = h.StartTime; j < endTime; j += hitRate) { switch (d) { default: + case 0: button = ReplayButtonState.Left1; break; case 1: @@ -66,7 +69,7 @@ namespace osu.Game.Rulesets.Taiko.Replays Frames.Add(new ReplayFrame(j, null, null, button)); d = (d + 1) % 4; - if (++count > req) + if (++count == req) break; } }