Skip to content

Commit

Permalink
Prevent music restart after item collection
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Oct 7, 2023
1 parent 0181f18 commit e61e158
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e61e158

Please sign in to comment.