-
Notifications
You must be signed in to change notification settings - Fork 59
Metamorphosis
juanosarg edited this page Jun 24, 2025
·
3 revisions
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";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="VEF.AnimalBehaviours.CompProperties_Metamorphosis">
<timeInYears>0.4</timeInYears>
<pawnToTurnInto>AA_AngelMoth</pawnToTurnInto>
</li>
</comps>- Abilities
- Aesthetic scaling
- Animal Behaviours
- Apparels
- Buildings
- Cooking
- Factions
- Genes
- Global
- Graphics
- Hediffs
- Maps
- Memes
- OptionalFeatures
- Pawns
- Planet
- Plants
- Storyteller
- Things
- Weapons
- Weathers
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Advanced Resource Processor
- Update to KCSG 2.0
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions