Skip to content

Commit

Permalink
Add a softlock prevention to SM chamber (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee authored Dec 22, 2023
1 parent 72d00ee commit c63a1b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [1.1.0] - 2023-12-??
### Added
- An item collection screen will now be shown, when the user starts with random items.
- When softlock prevention is active, then the first two crumble blocks in Super Missile Chamber will be shoot blocks instead.

## [1.0.3] - 2023-11-24
### Added
Expand Down
3 changes: 3 additions & 0 deletions YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2671,6 +2671,9 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
gmData.Code.ByName(codeName).ReplaceGMLInCode("oControl.mod_previous_room == 214 && global.spiderball == 0", "global.targetx == 416");
}

// Super Missile chamber - make first two crumble blocks shoot blocks
gmData.Code.ByName("gml_Room_rm_a3a23a_Create").AppendGMLInCode("if (global.softlockPrevention) { with (119465) instance_destroy(); with (119465) instance_destroy(); instance_create(304, 96, oBlockShoot); instance_create(304, 112, oBlockShoot);}");

// The bomb block puzzle in the room before varia dont need to be done anymore because it's already now covered by "dont regen bomb blocks" option
gmData.Code.ByName("gml_RoomCC_rm_a2a06_4761_Create").ReplaceGMLInCode(
"if (oControl.mod_randomgamebool == 1 && global.hasBombs == 0 && (!global.hasJumpball) && global.hasGravity == 0)",
Expand Down

0 comments on commit c63a1b5

Please sign in to comment.