Patch_GameScript_SaveGame.cs 391 B

123456789101112131415161718
  1. using GadgetCore.API;
  2. using HarmonyLib;
  3. namespace VanitySlots.Patches
  4. {
  5. [HarmonyPatch(typeof(GameScript))]
  6. [HarmonyPatch("SaveGame")]
  7. [HarmonyGadget("VanitySlots")]
  8. public static class Patch_GameScript_SaveGame
  9. {
  10. [HarmonyPrefix]
  11. public static void Prefix(GameScript __instance, Item[] ___storage, ref int ___storageLevel)
  12. {
  13. Core.itemStore.Save();
  14. }
  15. }
  16. }