From 84cb8cd749b0685d785b571d836bea8b35275476 Mon Sep 17 00:00:00 2001 From: Miepee Date: Sun, 23 Jun 2024 11:22:00 +0200 Subject: [PATCH] Fix current suit checking before getting suit as starting item --- YAMS-LIB/patches/StartingItems.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/YAMS-LIB/patches/StartingItems.cs b/YAMS-LIB/patches/StartingItems.cs index cb5b479..34a8eb6 100644 --- a/YAMS-LIB/patches/StartingItems.cs +++ b/YAMS-LIB/patches/StartingItems.cs @@ -205,7 +205,6 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC global.maxsmissiles = global.smissiles global.maxpbombs = global.pbombs; """); - characterVarsCode.ReplaceGMLInCode("global.currentsuit = 0", - "global.currentsuit = 0; if (global.hasGravity) global.currentsuit = 2; else if (global.hasVaria) global.currentsuit = 1;"); + characterVarsCode.AppendGMLInCode("global.currentsuit = 0; if (global.hasGravity) global.currentsuit = 2; else if (global.hasVaria) global.currentsuit = 1;"); } }