From b5ef0ae0d8a2e37256bc41f665d154e87902e130 Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Sat, 1 Apr 2017 16:32:31 +0900 Subject: [PATCH] consecutiveHits -> rollingHits. --- .../Objects/Drawable/DrawableDrumRoll.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/osu.Game.Modes.Taiko/Objects/Drawable/DrawableDrumRoll.cs b/osu.Game.Modes.Taiko/Objects/Drawable/DrawableDrumRoll.cs index 6b1c4f546b..9374864003 100644 --- a/osu.Game.Modes.Taiko/Objects/Drawable/DrawableDrumRoll.cs +++ b/osu.Game.Modes.Taiko/Objects/Drawable/DrawableDrumRoll.cs @@ -17,9 +17,9 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable public class DrawableDrumRoll : DrawableTaikoHitObject { /// - /// Number of consecutive hits required to reach the dark/final accent colour. + /// Number of rolling hits required to reach the dark/final accent colour. /// - private const int consecutive_hits_for_dark_accent = 5; + private const int rolling_hits_for_dark_accent = 5; private readonly DrumRoll drumRoll; @@ -28,9 +28,9 @@ public class DrawableDrumRoll : DrawableTaikoHitObject private Color4 accentDarkColour; /// - /// Number of consecutive tick hits. + /// Rolling number of tick hits. This increases for hits and increases for misses. /// - private int consecutiveHits; + private int rollingHits; public DrawableDrumRoll(DrumRoll drumRoll) : base(drumRoll) @@ -77,13 +77,13 @@ protected override void LoadComplete() private void onTickJudgement(DrawableHitObject obj) { if (obj.Judgement.Result == HitResult.Hit) - consecutiveHits++; + rollingHits++; else - consecutiveHits--; + rollingHits--; - consecutiveHits = MathHelper.Clamp(consecutiveHits, 0, consecutive_hits_for_dark_accent); + rollingHits = MathHelper.Clamp(rollingHits, 0, rolling_hits_for_dark_accent); - Color4 newAccent = Interpolation.ValueAt((float)consecutiveHits / consecutive_hits_for_dark_accent, AccentColour, accentDarkColour, 0, 1); + Color4 newAccent = Interpolation.ValueAt((float)rollingHits / rolling_hits_for_dark_accent, AccentColour, accentDarkColour, 0, 1); circle.FadeAccent(newAccent, 100); }