Skip to content

Regeneration

juanosarg edited this page May 20, 2024 · 3 revisions

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;

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 Raptor Shrimp in Alpha Animals to regenerate

<comps>
	<li Class="AnimalBehaviours.CompProperties_Regeneration">
		<rateInTicks>20</rateInTicks>
	</li>
</comps>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Genes

Apparel

Cuisine

Furniture

Plants

Deprecated

Clone this wiki locally