diff --git a/CHANGELOG.md b/CHANGELOG.md index d6a020d..002c150 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/YAMS-LIB/Program.cs b/YAMS-LIB/Program.cs index f88f9a1..32d13ec 100644 --- a/YAMS-LIB/Program.cs +++ b/YAMS-LIB/Program.cs @@ -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(""" @@ -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