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(); } } } }