Skip to content

Reduce prisoner resistance

juanosarg edited this page May 29, 2026 · 1 revision

<- Back

HediffComp_ReducePrisonerResistance is a comp class that can be applied to a hediff so that this hediff reduces a pawn's resistance periodically.

        public float resistancePerTick;
        public int checkingInterval = 250;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the hediff you want to have this behaviour.

<comps>
	<li Class="VEF.AnimalBehaviours.HediffCompProperties_ReducePrisonerResistance">
		<resistancePerTick>0.0000168</resistancePerTick>
	</li>
</comps>

Clone this wiki locally