Animal Behaviours Def Extensions - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
The AnimalBehaviours module of Vanilla Expanded Framework adds three Def Extensions:
- Animal Stat Extension: allows you to add new entries to the animal stats that appear in the animal info panel
- Extended Race Properties: makes animals Diurnal (default), Nocturnal or Crepuscular.
- Animal Crossbreed Extension: Allows you to tweak the results of animal crossbreeding
How do I use this code?
Def Extensions are added to the <modExtensions> tag of the ThingDef of the animal you want to add them to.
If you aren't sure if the def ALREADY has an extension (for example, if you think another mod will add their own), always use XPATH (xml patching) to add an extension, as there is already a PatchOperationAddModExtension to ensure they don't collide.