[+] Change every timer to 200 seconds

pull/40/head
Clansty 2024-05-21 21:17:30 +08:00
parent f106a31990
commit 2251350a4e
4 changed files with 18 additions and 0 deletions

View File

@ -276,6 +276,7 @@
<Compile Include="UX\CustomVersionString.cs" />
<Compile Include="UX\DemoMaster.cs" />
<Compile Include="UX\DisableReboot.cs" />
<Compile Include="UX\ExtendTimer.cs" />
<Compile Include="UX\LoadJacketPng.cs" />
<Compile Include="UX\LoadAssetBundleWithoutManifest.cs" />
<Compile Include="UX\QuickSkip.cs" />

View File

@ -33,6 +33,8 @@ DemoMaster=true
# Execute some command on game idle or on game start
ExecOnIdle=""
ExecOnEntry=""
# Change every timer to 200 seconds
ExtendTimer=true
[Performance]
# Disable some useless delays to speed up the game boot process

View File

@ -25,6 +25,7 @@ namespace AquaMai
public bool QuickSkip { get; set; }
public bool RandomBgm { get; set; }
public bool DemoMaster { get; set; }
public bool ExtendTimer { get; set; }
public string CustomVersionString { get; set; }
public string ExecOnIdle { get; set; }
public string ExecOnEntry { get; set; }

View File

@ -0,0 +1,14 @@
using HarmonyLib;
namespace AquaMai.UX
{
public class ExtendTimer
{
[HarmonyPrefix]
[HarmonyPatch(typeof(TimerController), "PrepareTimer")]
public static void PrePrepareTimer(ref int second)
{
second = 200;
}
}
}