Skip to content

Commit

Permalink
Change A5 emp escape route softlock prevention (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee authored Dec 22, 2023
1 parent c63a1b5 commit a1591f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- 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.

### Changed
- When softlock prevention is active, then in the EMP Escape route room, instead of the bottom row of speedbooster blocks being gone, now every pillar but the leftmost one is gone.

## [1.0.3] - 2023-11-24
### Added
- Plasma Beam Chamber's crumble blocks will be gone when the softlock prevention setting is turned on.
Expand Down
6 changes: 3 additions & 3 deletions YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
UndertaleRoom? a5c08 = gmData.Rooms.ByName("rm_a5c08");
foreach (UndertaleRoom.GameObject? gameObject in a5c08.GameObjects.Where(o => o.ObjectDefinition.Name.Content == "oBlockSpeed"))
{
// Y 32 is the top row of speed blocks
// Y 32 is the top row of speed blocks. we need to remove am2random behaviour from them
if (gameObject.Y == 32)
{
gameObject.CreationCode.ReplaceGMLInCode("""
Expand All @@ -2613,8 +2613,8 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
""", "");
}

// Y 80 is the bottom row of speed blocks
if (gameObject.Y == 80) gameObject.CreationCode.AppendGMLInCode("if (global.softlockPrevention) instance_destroy();");
// X 960 are the right pillars which we want to remove.
if (gameObject.X >= 960) gameObject.CreationCode.AppendGMLInCode("if (global.softlockPrevention) instance_destroy();");
}

// screw blocks in bullet hell room
Expand Down

0 comments on commit a1591f3

Please sign in to comment.