Skip to content

Commit

Permalink
Add softlock prevention to plasma beam chamber
Browse files Browse the repository at this point in the history
Make crumble blocks gone if that setting is on.
  • Loading branch information
Miepee committed Nov 24, 2023
1 parent 5153c71 commit 974cb60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [1.0.3] - 2023-11-24
### Added
- Plasma Beam Chamber's crumble blocks will be gone when the softlock prevention setting is turned on.

## [1.0.2] - 2023-11-24
### Added
- Shell script to make launching randomized game easier on Flatpak.
Expand Down
2 changes: 2 additions & 0 deletions YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2896,6 +2896,8 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
AppendGMLInCode(gameObject.CreationCode, "if (global.softlockPrevention) instance_destroy();");
}

// Crumble blocks in plasma chamber
AppendGMLInCode(gmData.Code.ByName("gml_Room_rm_a4a10_Create"), "if (global.softlockPrevention) { with (oBlockStep) instance_destroy(); }");

// A4 exterior top, always remove the bomb blocks when coming from that entrance
foreach (string codeName in new[] {"gml_RoomCC_rm_a4h03_6341_Create", "gml_RoomCC_rm_a4h03_6342_Create"})
Expand Down

0 comments on commit 974cb60

Please sign in to comment.