[1.0.2059] Added injury to Mech but it should be impossible to hit it! (No mods)

Started by dacian, December 03, 2018, 01:25:43 PM

Previous topic - Next topic

dacian

Added injury to MechanicalCentipedeBodyFirstRing but it should be impossible to hit it. pawn=Mech_Centipede38341 dinfo=(def=Stab, amount= 7.561606, instigator=TrapSpike38111, angle=164.0)
Verse.Log:Error(String, Boolean)
Verse.Hediff_Injury:PostAdd(Nullable`1)
Verse.HediffSet:AddDirect(Hediff, Nullable`1, DamageResult)
Verse.Pawn_HealthTracker:AddHediff(Hediff, BodyPartRecord, Nullable`1, DamageResult)
Verse.DamageWorker_AddInjury:FinalizeAndAddInjury(Pawn, Hediff_Injury, DamageInfo, DamageResult)
Verse.DamageWorker_AddInjury:FinalizeAndAddInjury(Pawn, Single, DamageInfo, DamageResult)
Verse.DamageWorker_Stab:ApplySpecialEffectsToPart(Pawn, Single, DamageInfo, DamageResult)
Verse.DamageWorker_AddInjury:ApplyDamageToPart(DamageInfo, Pawn, DamageResult)
Verse.DamageWorker_AddInjury:ApplyToPawn(DamageInfo, Pawn)
Verse.DamageWorker_AddInjury:Apply(DamageInfo, Thing)
Verse.Thing:TakeDamage(DamageInfo)
RimWorld.Building_TrapDamager:SpringSub(Pawn)
RimWorld.Building_Trap:Spring(Pawn)
RimWorld.Building_Trap:CheckSpring(Pawn)
RimWorld.Building_Trap:Tick()
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()

This is easily reproducible by starting (without mods) with a tribe (maybe others as well), then completely enclose the camp in walls and leave only one entrance.
Then create a huge maze of wooden traps in an S shape (100 traps in my test). Execute a mech raid of >1000 points (remove all but 2 centipedes).
These 2 centipedes will start their journey through the trap maze towards the camp and hitting trap after trap. Randomly you start seeing this message appear (sometimes even 20 times in a row)

dacian


aRandomKiwi