mirror of
https://github.com/osukey/osukey.git
synced 2025-05-08 07:07:18 +09:00
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:
parent
bc3f11fdb8
commit
3e8db8c5e1
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user