[RF] Move some settings to TimeSavingConfig

This commit is contained in:
Clansty
2024-09-27 19:13:53 +08:00
parent 24e6808984
commit 9605264b9a
11 changed files with 131 additions and 96 deletions

View File

@@ -0,0 +1,26 @@
using HarmonyLib;
using Monitor;
using Process;
namespace AquaMai.TimeSaving;
public class SkipGameOverScreen
{
[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;
}
}
}