Patch_GameScript_LoadGame.cs 437 B

12345678910111213141516171819202122
  1. using GadgetCore;
  2. using GadgetCore.API;
  3. using HarmonyLib;
  4. using System;
  5. using System.Reflection;
  6. using UnityEngine;
  7. namespace CombatChipChest.Patches
  8. {
  9. [HarmonyPatch(typeof(GameScript))]
  10. [HarmonyPatch("LoadGame")]
  11. [HarmonyGadget("CombatChipChest")]
  12. public static class Patch_GameScript_LoadGame
  13. {
  14. [HarmonyPrefix]
  15. public static void Prefix(GameScript __instance)
  16. {
  17. Core.combatChipStore.Load();
  18. }
  19. }
  20. }