| 123456789101112131415161718 |
- using GadgetCore.API;
- using HarmonyLib;
- namespace VanitySlots.Patches
- {
- [HarmonyPatch(typeof(GameScript))]
- [HarmonyPatch("SaveGame")]
- [HarmonyGadget("VanitySlots")]
- public static class Patch_GameScript_SaveGame
- {
- [HarmonyPrefix]
- public static void Prefix(GameScript __instance, Item[] ___storage, ref int ___storageLevel)
- {
- Core.itemStore.Save();
- }
- }
- }
|