| 123456789101112131415161718192021222324 |
- using GadgetCore.API;
- using HarmonyLib;
- namespace VanitySlots.Patches
- {
- [HarmonyPatch(typeof(GameScript))]
- [HarmonyPatch("Retry")]
- [HarmonyGadget("VanitySlots")]
- public static class Patch_GameScript_Retry
- {
- [HarmonyPostfix]
- [HarmonyPriority(Priority.Low)]
- public static void Postfix(GameScript __instance, Item[] ___storage, ref int ___storageLevel)
- {
- if (!Core.IsSoftcore())
- {
- Core.itemStore.Clear();
- Core.itemStore.Save();
- }
- }
- }
- }
|