| 1234567891011121314151617181920212223 |
- using GadgetCore.API;
- using HarmonyLib;
- namespace ScrapYard.Patches
- {
- [HarmonyPatch(typeof(GameScript))]
- [HarmonyPatch("Talk")]
- [HarmonyGadget("ScrapYard")]
- public static class Patch_GameScript_Talk
- {
- [HarmonyPrefix]
- public static bool Prefix(GameScript __instance, int a)
- {
- if (a < 0)
- {
- __instance.StartCoroutine(__instance.ExitTalking());
- return false;
- }
- return true;
- }
- }
- }
|