Enabled strong taiko hitobjects playing samples again.

Also removes the first hitsound from the strong hitobject so only the "hitfinish" sound gets played.
This commit is contained in:
FreezyLemon 2017-11-29 06:27:25 +01:00
parent bc3f11fdb8
commit 3e8db8c5e1

View File

@ -16,6 +16,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
/// </summary> /// </summary>
private const double second_hit_window = 30; private const double second_hit_window = 30;
protected override bool PlaysSamples => true;
private double firstHitTime; private double firstHitTime;
private bool firstKeyHeld; private bool firstKeyHeld;
private TaikoAction firstHitAction; private TaikoAction firstHitAction;
@ -53,6 +55,15 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
return base.OnReleased(action); 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) public override bool OnPressed(TaikoAction action)
{ {
if (AllJudged) if (AllJudged)