-
Notifications
You must be signed in to change notification settings - Fork 59
AnimalStatExtension
juanosarg edited this page Jul 18, 2025
·
2 revisions
AnimalStatExtension allows you to add new entries to the animal stats that appear in the animal info panel (the one that gives you the amounts of meat they produce, their lifespan, etc).
public class AnimalStatExtension : DefModExtension
{
public List<string> statToAdd = null;
public List<string> statValues = null;
public List<string> statDescriptions = null;
}It also allows you to put an image of an animal in its info card
public bool showImageInInfoCard = false;
public string ImageToShowInInfoCard = "UI/EmptyImage";Image is recommended to be 300 x 300 px and have a transparent background.
As an example of AnimalStatExtension, the Aerofleet in Alpha Animals uses this to display details about its roles and abilities, as well as its art image. All entries point to translatable strings in Languages/English/Keyed/Misc_Gameplay.xml
<modExtensions>
<li Class="VEF.AnimalBehaviours.AnimalStatExtension">
<statToAdd>
<li>AA_SecondaryRole</li>
<li>AA_PrimaryRole</li>
<li>AA_RangedAttacks</li>
</statToAdd>
<statValues>
<li>AA_Utility</li>
<li>AA_Boomer</li>
<li>AA_No</li>
</statValues>
<statDescriptions>
<li>AA_UtilityPowerDesc</li>
<li>AA_BoomerDesc</li>
<li>AA_NoRanged</li>
</statDescriptions>
<showImageInInfoCard>true</showImageInInfoCard>
<ImageToShowInInfoCard>Art/AA_AerofleetArt</ImageToShowInInfoCard>
</li>
</modExtensions>- 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