Hediff Effecter - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

CompHediffEffecter is a comp class that makes an animal cause a health condition (hediff) in nearby pawns

    //A comp class that makes an animal produce a certain Hediff in nearby pawns

    public int radius = 1;
    public float severity = 1.0f;
    public int tickInterval = 1000;
    public string hediff = "Plague";
    public bool notOnlyAffectColonists = false;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this allows Bearofleets in RimWorld - Witcher Monster Hunt to cause hunger in nearby pawns

<comps>
	<li Class="AnimalBehaviours.CompProperties_HediffEffecter">
		<radius>40</radius>
		<severity>1</severity>
		<tickInterval>100</tickInterval>
		<hediff>WMH_Hunger</hediff>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️