Skip to content

Commit

Permalink
fix some oopsies
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Jun 24, 2024
1 parent d178c24 commit cd976fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions YAMS-LIB/patches/DecoupleItemsFromLocations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC
gmData.Rooms.ByName("rm_a1a06").GameObjects.Where(go => go.ObjectDefinition.Name.Content == "oBlockScrew").Select(go => go.CreationCode).Contains(c) ||
gmData.Rooms.ByName("rm_a3a04").GameObjects.Where(go => go.ObjectDefinition.Name.Content == "oBlockScrew").Select(go => go.CreationCode).Contains(c) ||
gmData.Rooms.ByName("rm_a4a01").GameObjects.Where(go => go.ObjectDefinition.Name.Content == "oBlockScrew").Select(go => go.CreationCode).Contains(c) ||
gmData.Rooms.ByName("rm_a5a03").GameObjects.Where(go => go.X is >= 96 and <= 112 && go.Y is >= 240 and <= 288 && go.ObjectDefinition.Name.Content == "oBlockStep").Select(go => go.CreationCode).Contains(c)
gmData.Rooms.ByName("rm_a5c13").GameObjects.Where(go => go.X is >= 240 and <= 256 && go.Y is >= 114 and <= 176 && go.ObjectDefinition.Name.Content == "oBlockScrew").Select(go => go.CreationCode).Contains(c)
))

{
Expand All @@ -166,8 +166,9 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC
rm_a2a06.GameObjects.First(go => go.X == 608 && go.Y == 112 && go.ObjectDefinition.Name.Content == "oBlockBomb").CreationCode == c ||
rm_a2a06.GameObjects.First(go => go.X == 624 && go.Y == 48 && go.ObjectDefinition.Name.Content == "oBlockBomb").CreationCode == c ||
gmData.Rooms.ByName("rm_a5a03").GameObjects.Where(go => go.X is >= 96 and <= 112 && go.Y is >= 240 and <= 288 && go.ObjectDefinition.Name.Content == "oBlockStep").Select(go => go.CreationCode).Contains(c) ||
gmData.Rooms.ByName("rm_a50a5").GameObjects.First(go => go.ObjectDefinition.Name.Content == "oElderSeptogg").CreationCode == c ||
gmData.Rooms.ByName("rm_a5a06").GameObjects.First(go => go.ObjectDefinition.Name.Content == "oBlockBomb" && go.X == 192 && go.Y == 64).CreationCode == c))
gmData.Rooms.ByName("rm_a5a05").GameObjects.First(go => go.ObjectDefinition.Name.Content == "oElderSeptogg").CreationCode == c ||
gmData.Rooms.ByName("rm_a5a06").GameObjects.First(go => go.ObjectDefinition.Name.Content == "oBlockBombChain" && go.X == 192 && go.Y == 64).CreationCode == c
))

{
codeEntry.ReplaceGMLInCode("global.item[9]", "global.hasGravity");
Expand Down

0 comments on commit cd976fb

Please sign in to comment.