Skip to content

Metamorphosis

juanosarg edited this page Jan 25, 2021 · 1 revision

CompMetamorphosis is a comp class that makes an animal turn into a different animal after a given time. Only faction is preserved after the change, losing all possible hediffs (both negative and positive), training and family relations.

    //A comp class that makes an animal change into another animal after a given time

    public float timeInYears;
    public string pawnToTurnInto;
    public string reportString = "VEF_TimeToMetamorphosis";

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 the Angel Moth Larva to turn into adult Angel Moths in Alpha Animals

<comps>
	<li Class="AnimalBehaviours.CompProperties_Metamorphosis">
		<timeInYears>0.4</timeInYears>
		<pawnToTurnInto>AA_AngelMoth</pawnToTurnInto>
	</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