From 1e3d8dd4ba19b740b1069d767a5b293151213f81 Mon Sep 17 00:00:00 2001 From: Miepee Date: Tue, 26 Sep 2023 10:40:45 +0200 Subject: [PATCH] Make ammo doors lock properly in boss arenas again. --- YAMS-LIB/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YAMS-LIB/Program.cs b/YAMS-LIB/Program.cs index 728b1b2..fcb0ae6 100644 --- a/YAMS-LIB/Program.cs +++ b/YAMS-LIB/Program.cs @@ -716,7 +716,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te ReplaceGMLInCode(gmData.Code.ByName("gml_Object_oDoor_Alarm_0"), "event_user(2)", "{ event_user(2); if(event > 0 && lock < 4) global.event[event] = 1; }"); // ...But don't make them automatically opened for non-ammo doors! - ReplaceGMLInCode(gmData.Code.ByName("gml_Object_oDoor_Alarm_0"), "lock = 0", "if (lock < 5) lock = 0;"); + ReplaceGMLInCode(gmData.Code.ByName("gml_Object_oDoor_Alarm_0"), "lock = 0", "if (lock < 4) lock = 0;"); // Make doors when unlocked, go to the type they were before except for ammo doors AppendGMLInCode(gmData.Code.ByName("gml_Object_oDoor_Create_0"), "originalLock = lock;");