From 8145c8e5992fc1a86e844053028505f37bd0dfad Mon Sep 17 00:00:00 2001 From: xChipseq Date: Mon, 4 Aug 2025 15:33:04 +0200 Subject: [PATCH] patch --- .../Patches/Events/FreeplayRoundStartPatch.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs diff --git a/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs b/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs new file mode 100644 index 0000000..12c95c1 --- /dev/null +++ b/MiraAPI/Patches/Events/FreeplayRoundStartPatch.cs @@ -0,0 +1,17 @@ +using HarmonyLib; +using MiraAPI.Events; +using MiraAPI.Events.Vanilla.Gameplay; + +namespace MiraAPI.Patches.Events; + +[HarmonyPatch(typeof(TutorialManager._RunTutorial_d__3), nameof(TutorialManager._RunTutorial_d__3.MoveNext))] +public static class FreeplayRoundStartPatch +{ + public static void Postfix(TutorialManager._RunTutorial_d__3 __instance, ref bool __result) + { + if (!__result) + { + MiraEventManager.InvokeEvent(new RoundStartEvent(true)); + } + } +}