From 114a452609a897445a0f0663a0a65932163c4d14 Mon Sep 17 00:00:00 2001 From: Clansty Date: Sun, 26 May 2024 10:33:29 +0800 Subject: [PATCH] [+] Skip "Dont tap or slide vigorously" and "Bye" when QuickSkip is on --- AquaMai/UX/QuickSkip.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/AquaMai/UX/QuickSkip.cs b/AquaMai/UX/QuickSkip.cs index acfe582f..1da4d4bf 100644 --- a/AquaMai/UX/QuickSkip.cs +++ b/AquaMai/UX/QuickSkip.cs @@ -5,6 +5,7 @@ using MAI2.Util; using Main; using Manager; using MelonLoader; +using Monitor; using Process; using UnityEngine; @@ -75,5 +76,31 @@ namespace AquaMai.UX _container.processManager.AddProcess(new FadeProcess(_container, processToRelease, new MusicSelectProcess(_container))); } } + + [HarmonyPrefix] + [HarmonyPatch(typeof(PlInformationMonitor), "IsPlayPlInfoEnd")] + public static bool IWontTapOrSlideVigorously(ref bool __result) + { + __result = true; + return false; + } + + [HarmonyPrefix] + [HarmonyPatch(typeof(GameOverMonitor), "IsPlayEnd")] + public static bool GameOverMonitorPlayEnd(ref bool __result) + { + __result = true; + return false; + } + + [HarmonyPrefix] + [HarmonyPatch(typeof(GameOverProcess), "OnUpdate")] + public static void GameOverProcessOnUpdate(ref GameOverProcess.GameOverSequence ____state) + { + if (____state == GameOverProcess.GameOverSequence.SkyChange) + { + ____state = GameOverProcess.GameOverSequence.Disp; + } + } } } \ No newline at end of file