Animal Behaviours Basics - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
The Animal Behaviours part of the Vanilla Expanded Framework includes a lot of classes that can be used to modify the way animals act in RimWorld.
- Animal Behaviours Comp Classes, several classes that can be accessed through XML to give certain behaviours to animals
- Animal Behaviours Hediff Comp Classes, several classes that can be accessed through XML to give certain behaviours to hediffs
- Animal Behaviours Damage Workers, classes that activate when dealing damage
- Animal Behaviours Def Extensions, def extensions to provide additional XML data to animals
- Animal Behaviours Extra Defs, new defs to provide additional XML animal lists for various functionality
- Animal Behaviours Misc, other miscellaneous things
Most of the code in this module is structured in comp classes, so you just add them in XML in the <comps>
tag. Examples are provided in each section.
Inside the framework, the namespace to access all the Animal Behaviours classes is "AnimalBehaviours"