RimWorld

RimWorld

Polarisbloc - Security Force
遇到一个bug
弹药包不会被正确消耗复活人后会报以下错误
JobDriver threw exception in toil Do's initAction for pawn 可云 driver=JobDriver_Resurrect (toilIndex=4) driver.job=(Resurrect (Job_516) A=Thing_Corpse_Human31176 B=Thing_PolarisCartridge31154)
System.InvalidCastException: Specified cast is not valid.
at (wrapper dynamic-method) RimWorld.JobDriver_Resurrect.RimWorld.JobDriver_Resurrect.Resurrect_Patch0(RimWorld.JobDriver_Resurrect)
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <cd7169108ea74757aa50c5b33d275c15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
(wrapper dynamic-method) Verse.AI.JobUtility:Verse.AI.JobUtility.TryStartErrorRecoverJob_Patch1 (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
(wrapper dynamic-method) Verse.AI.JobDriver:Verse.AI.JobDriver.DriverTick_Patch0 (Verse.AI.JobDriver)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch3 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch3 (Verse.Game)
Verse.Root_Play:Update ()