From 3e8db8c5e1020031f51a874db7d0c7059a54e3b0 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Wed, 29 Nov 2017 06:27:25 +0100 Subject: [PATCH] Enabled strong taiko hitobjects playing samples again. Also removes the first hitsound from the strong hitobject so only the "hitfinish" sound gets played. --- .../Objects/Drawables/DrawableHitStrong.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableHitStrong.cs b/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableHitStrong.cs index c07eaf4d8b..eced24a8da 100644 --- a/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableHitStrong.cs +++ b/osu.Game.Rulesets.Taiko/Objects/Drawables/DrawableHitStrong.cs @@ -16,6 +16,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables /// private const double second_hit_window = 30; + protected override bool PlaysSamples => true; + private double firstHitTime; private bool firstKeyHeld; private TaikoAction firstHitAction; @@ -53,6 +55,15 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables return base.OnReleased(action); } + protected override void LoadComplete() + { + base.LoadComplete(); + + if (Samples.Count > 1) + // Removes the "normal" hitsound, leaving only the hitfinish one + Samples.RemoveAt(0); + } + public override bool OnPressed(TaikoAction action) { if (AllJudged)