Skip to content

Commit

Permalink
Fix current suit checking before getting suit as starting item
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Jun 23, 2024
1 parent 0dd5c7a commit 84cb8cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions YAMS-LIB/patches/StartingItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;");
}
}

0 comments on commit 84cb8cd

Please sign in to comment.