Regeneration - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
CompRegeneration is a comp class that allows an animal to regenerate wounds
//A very simple class that regenerates wounds
public int rateInTicks = 1000;
public float healAmount = 0.1f;
public bool healAll = true;
//If not null, regeneration will only affect this BodyPartDef
public BodyPartDef bodypart =null;
It is a comp class, so you just add it in XML in the <comps>
tag. For example, this allows Raptor Shrimp in Alpha Animals to regenerate
<comps>
<li Class="AnimalBehaviours.CompProperties_Regeneration">
<rateInTicks>20</rateInTicks>
</li>
</comps>