Skip to content

Commit

Permalink
Add pb drops to bosses
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGainsNGames committed May 24, 2024
1 parent b49e148 commit 6336ffd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### Added
- Added ammo drops to Queen
- Added PB drops to all bosses

### Changed
- The Walljump item has been renamed to Walljump Boots.
Expand Down
5 changes: 4 additions & 1 deletion YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath)
gmData.Code.ByName("gml_RoomCC_rm_a0h01_3762_Create").AppendGMLInCode("instance_destroy()");
gmData.Code.ByName("gml_Room_rm_a0h01_Create").AppendGMLInCode("tile_layer_delete(-119)");

// Killing Queen spawns pickups (helps prevent softlocks with DLR
// Killing Queen spawns pickups (helps prevent softlocks with DLR)
gmData.Code.ByName("gml_Object_oQueen_Other_20").AppendGMLInCode("spawn_many_powerups(x, y-70, 100, 60)");

// Make Logbook colored
Expand Down Expand Up @@ -2736,6 +2736,9 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath)
}
}

// Make Bosses now spawns PB drops on death
gmData.Code.ByName("gml_Script_spawn_many_powerups").ReplaceGMLInCode("if ((global.hasBombs == 0 && global.maxpbombs > 0) || (oControl.mod_insanitymode == 1 && global.maxpbombs > 0))", "if (global.maxpbombs > 0)");

// Add patch to see room names on minimap
DisplayRoomNamesOnMap.Apply(gmData, decompileContext, seedObject);

Expand Down

0 comments on commit 6336ffd

Please sign in to comment.