From e61e158f207029a6d6abc36a8f48919feab5332d Mon Sep 17 00:00:00 2001 From: dyceron <38679103+dyceron@users.noreply.github.com> Date: Sat, 7 Oct 2023 11:53:05 -0400 Subject: [PATCH] Prevent music restart after item collection --- .../files/templates/randomizer_item_template.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/open_samus_returns_rando/files/templates/randomizer_item_template.lua b/open_samus_returns_rando/files/templates/randomizer_item_template.lua index eb800f5..a89cbd7 100644 --- a/open_samus_returns_rando/files/templates/randomizer_item_template.lua +++ b/open_samus_returns_rando/files/templates/randomizer_item_template.lua @@ -4,7 +4,8 @@ function T__name__T.main() end function T__name__T.OnPickedUp() local resources = TEMPLATE("resources") - Game.PlayMusicStream(0, TEMPLATE("sound"), -1, -1, 0, 0, 0, 0) + -- (priority, sound file, unknown, unknown, times to replay sound, fade-out time, fade-in time, unknown) + Game.PlayMusicStream(1, TEMPLATE("sound"), -1, -1, 0, 0, 0, 0) GUI.LaunchMessage(TEMPLATE("caption"), "RandomizerPowerup.Dummy", "") TEMPLATE("parent").OnPickedUp(resources) hud.UpdatePlayerInfo(true)