Skip to content

Reduce prisoner certainty

juanosarg edited this page May 29, 2026 · 1 revision

<- Back

HediffComp_ReducePrisonerCertainty is a comp class that can be applied to a hediff so that this hediff reduces a pawn's certainty periodically. Will actually NOT only affect prisoners.

        public float certaintyPerTick;
        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_ReducePrisonerCertainty">
		<certaintyPerTick>0.00003333</certaintyPerTick>
		<checkingInterval>2500</checkingInterval>
	</li>
</comps>

Clone this wiki locally