Speed up cranking timer in debug builds

The code does not appear to be in `dotnet build --configuration Release`
This commit is contained in:
ivan tkachenko 2025-07-04 23:31:07 +03:00
parent cb1002d339
commit 2bd17424cd
1 changed files with 8 additions and 0 deletions

View File

@ -163,6 +163,14 @@ namespace MuzikaGromche
[HarmonyPatch(typeof(JesterAI))] [HarmonyPatch(typeof(JesterAI))]
internal class JesterPatch internal class JesterPatch
{ {
#if DEBUG
[HarmonyPatch("SetJesterInitialValues")]
[HarmonyPostfix]
public static void AlmostInstantFollowTimerPostfix(JesterAI __instance)
{
__instance.beginCrankingTimer = 1f;
}
#endif
[HarmonyPatch("Update")] [HarmonyPatch("Update")]
[HarmonyPrefix] [HarmonyPrefix]
public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state) public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state)