Passive Regenerator - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

CompPassiveRegenerator is a comp class that makes an animal regenerate the wounds of nearby pawns, but not their own

    //A comp class that makes an animal regenerate other's wounds

    public int radius = 1;
    public int tickInterval = 1000;
    public float healAmount = 0.1f;
    public bool healAll = true;
    public bool showEffect = false;
    public bool needsToBeTamed = 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 Kitsune in Magical Menagerie to heal the wounds of nearby pawns, as long as it is tamed

<comps>
	<li Class="AnimalBehaviours.CompProperties_PassiveRegenerator">
		<radius>5</radius>
		<needsToBeTamed>true</needsToBeTamed>
		<tickInterval>300</tickInterval>	
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️