Skip to content

Commit

Permalink
Further temp hack music in pipe rooms for pipe shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed May 17, 2024
1 parent a61b7ca commit 99cac52
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2684,7 +2684,15 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath)
"rm_a7a07"
})
{
gmData.Rooms.ByName(roomName).CreationCodeId.PrependGMLInCode("global.darkness = 0; global.waterlevel = 0; global.watertype = 0; mus_change(musItemAmb); ");
string musicCode = roomName switch
{
var s when s.StartsWith("rm_a5b") || (s.StartsWith("rm_a5c") && s != "rm_a5c14") => "if (global.event[250] > 0) mus_change(musArea5B) else mus_change(musArea5A);",
"rm_a6b03" or "rm_a6b11" or "rm_a7a07" => "mus_change(musArea6A);",
"rm_a6a11" => "mus_change(mus_get_main_song());",
_ => "mus_change(musItemAmb);",
};

gmData.Rooms.ByName(roomName).CreationCodeId.PrependGMLInCode($"global.darkness = 0; global.waterlevel = 0; global.watertype = 0; {musicCode}");
}


Expand Down

0 comments on commit 99cac52

Please sign in to comment.