You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My prisoners no longer mental break, even when very depressed. I get a bug message: Exception ticking Inga (at (112, 0, 104)): System.NullReferenceException: Object reference not set to an instance of an object
at PrisonLabor.HarmonyPatches.Patches_TreatmentTinkering.Patch_ReduceChanceForMentalBreak.Prefix (Verse.AI.MentalStateHandler,bool,Verse.MentalStateDef,string,bool,bool,Verse.Pawn) <0x00100>
at (wrapper dynamic-method) Verse.AI.MentalStateHandler.TryStartMentalState_Patch2 (object,Verse.MentalStateDef,string,bool,bool,Verse.Pawn,bool) <0x00050>
at Verse.AI.MentalBreakWorker.TryStart (Verse.Pawn,string,bool) <0x0005e>
at (wrapper dynamic-method) Verse.AI.MentalBreaker.TryDoRandomMoodCausedMentalBreak_Patch1 (object) <0x002a7>
at Verse.AI.MentalBreaker.MentalBreakerTick () <0x0020e>
at Verse.AI.Pawn_MindState.MindStateTick () <0x0009a>
at (wrapper dynamic-method) Verse.Pawn.Tick_Patch1 (object) <0x002c9>
at Verse.TickList.Tick () <0x00487>
I got the same issue
Exception ticking 005 (at (118, 0, 138)): System.NullReferenceException: Object reference not set to an instance of an object
at PrisonLabor.HarmonyPatches.Patches_TreatmentTinkering.Patch_ReduceChanceForMentalBreak.Prefix (Verse.AI.MentalStateHandler __instance, System.Boolean __result, Verse.MentalStateDef stateDef, System.String reason, System.Boolean forceWake, System.Boolean causedByMood, Verse.Pawn otherPawn) [0x0004b] in <09d3158e5bda4b7d9e819e7307f3baa9>:0
at (wrapper dynamic-method) Verse.AI.MentalStateHandler.DMD<DMD<TryStartMentalState_Patch4>?-43265152::TryStartMentalState_Patch4>(Verse.AI.MentalStateHandler,Verse.MentalStateDef,string,bool,bool,Verse.Pawn,bool)
at Verse.AI.MentalBreakWorker.TryStart (Verse.Pawn pawn, System.String reason, System.Boolean causedByMood) [0x00000] in <29684bdca4b441d38f64a3f064edc8ed>:0
at (wrapper dynamic-method) Verse.AI.MentalBreaker.DMD<DMD<TryDoRandomMoodCausedMentalBreak_Patch1>?-1261721600::TryDoRandomMoodCausedMentalBreak_Patch1>(Verse.AI.MentalBreaker)
at Verse.AI.MentalBreaker.MentalBreakerTick () [0x000df] in <29684bdca4b441d38f64a3f064edc8ed>:0
at (wrapper dynamic-method) Verse.AI.Pawn_MindState.DMD<DMD<MindStateTick_Patch1>?418607360::MindStateTick_Patch1>(Verse.AI.Pawn_MindState)
at (wrapper dynamic-method) Verse.Pawn.DMD<DMD<Tick_Patch4>?-1225472768::Tick_Patch4>(Verse.Pawn)
at Verse.TickList.Tick () [0x0015c] in <29684bdca4b441d38f64a3f064edc8ed>:0
Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DMD<DMD<DoSingleTick_Patch1>?1033447424::DoSingleTick_Patch1>(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
My prisoners no longer mental break, even when very depressed. I get a bug message: Exception ticking Inga (at (112, 0, 104)): System.NullReferenceException: Object reference not set to an instance of an object
at PrisonLabor.HarmonyPatches.Patches_TreatmentTinkering.Patch_ReduceChanceForMentalBreak.Prefix (Verse.AI.MentalStateHandler,bool,Verse.MentalStateDef,string,bool,bool,Verse.Pawn) <0x00100>
at (wrapper dynamic-method) Verse.AI.MentalStateHandler.TryStartMentalState_Patch2 (object,Verse.MentalStateDef,string,bool,bool,Verse.Pawn,bool) <0x00050>
at Verse.AI.MentalBreakWorker.TryStart (Verse.Pawn,string,bool) <0x0005e>
at (wrapper dynamic-method) Verse.AI.MentalBreaker.TryDoRandomMoodCausedMentalBreak_Patch1 (object) <0x002a7>
at Verse.AI.MentalBreaker.MentalBreakerTick () <0x0020e>
at Verse.AI.Pawn_MindState.MindStateTick () <0x0009a>
at (wrapper dynamic-method) Verse.Pawn.Tick_Patch1 (object) <0x002c9>
at Verse.TickList.Tick () <0x00487>
Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
The text was updated successfully, but these errors were encountered: