forked from nikita/muzika-gromche
				
			Speed up cranking timer in debug builds
The code does not appear to be in `dotnet build --configuration Release`
This commit is contained in:
		
							parent
							
								
									cb1002d339
								
							
						
					
					
						commit
						2bd17424cd
					
				|  | @ -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) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue