Clean up and fix double-starting music #2

Merged
nikita merged 15 commits from ratijas/muzika-gromche:work/r/double-trigger into master 2025-07-11 20:06:25 +00:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 2bd17424cd - Show all commits

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)