private static void SaveState_SessionEnded(On.SaveState.orig_SessionEnded orig, SaveState self, RainWorldGame game, bool survived, bool newMalnourished) { KarmaAppetite_ExtraInventory.SaveEnabled = survived; orig.Invoke(self, game, survived, newMalnourished); KarmaAppetite_ExtraInventory.SaveEnabled = true; if (!survived) { KarmaAppetite_ExtraInventory.Inventories.Clear(); } }
private static void SessionEndPatch(On.SaveState.orig_SessionEnded orig, SaveState self, RainWorldGame game, bool survived, bool newMalnourished) { orig.Invoke(self, game, survived, newMalnourished); LoadAndSaveOI(2, false); }