Animal Traits System - Core Framework
[hr]
Lore and Vanilla-friendly, 63 custom-made animal traits and a framework for adding more, for you to explore and discover :]
[i]I think every animal has something unique about it if you pay enough attention.[/i]
What is this?
[hr]
Animals now have traits that make them unique. They can be smart, or dumb, or just tough, and you pick what they can be.
Core Features:
[hr]
This only adds traits to animals, no new animals, no new items, no new mechanics. Just traits that make animals unique, this is the premise of this core framework.
[b]This core package comes with ~63 Traits[/b]
[b]A few examples:[/b]
[b]Hungry:[/b] +25% hunger rate, +5% move speed, +15% metabolism
[b]Sated:[/b] -30% hunger rate, +10% metabolism
[b]Tough:[/b] -15% incoming damage, +15% injury healing, +10% pain threshold
[b]Strong:[/b] +30% melee damage, +15% carrying capacity
[b]Fast:[/b] +20% move speed, +15% dodge chance
[b]Smart:[/b] +50% training speed, +15% consciousness
[b]Docile:[/b] +35% trainability, -20% wildness, -30% revenge chance
[b]Alpha:[/b] +40% melee damage, +15% consciousness, +10% manipulation
[b]I also made some unique and rarer species-specific Traits:[/b]
[b]Muffalo Herd Leader:[/b] +20% damage, -15% incoming damage, +10% sight/hearing
[b]Thrumbo Ancient One:[/b] +50% lifespan, -20% incoming damage, +20% consciousness
[b]Wolf Pack Alpha:[/b] +35% damage, +10% move speed, +20% consciousness
[b]Horse Warhorse:[/b] +40% damage, -20% incoming damage, +10% pain threshold
[b]Chicken Champion Layer:[/b] +75% egg laying, +15% metabolism
And 40+ more unique traits...
[b]Configurable Trait Assignment System[/b]
[b]Weight-based rarity:[/b] Common traits appear often, rare traits are special finds
[b]Savegame compatible[/b]
Its designed to be savegame compatible, generates traits for all animals once you load the game, and you can even remove it without risk since its just mostly Hediff management.
[b]Compability with other mods[/b]
It should be compatible with mostly anything, my mod uses Harmony to do only safe postfixes and I generally don't mess with anything outside my mod's scope/domain.
[b]Minimum/Maximum traits per animal:[/b]
Control how many traits an animal can have, I recommend like 2, that's a good spot for me
[b]New stats for animals:[/b]
Litter size (amount of children)
Egg laying amount (for chickens and stuff)
Revenge Chance Modifier on Tame failed
Revenge Chance Modifier on Damage taken
[b]Integration with Pawn columns[/b]
You can view traits and stats directly in the animal list for ease of viewing
[b]Animal-specific trait restrictions:[/b]
Prevent nonsensical traits on certain species like herd-leader (for muffalos) on cougars.
[b]Exclusivity rules[/b]
Prevent conflicting traits from being assigned together because I didn't want strong and weak on the same animal, for example.
[b]Mod settings for full customization[/b]
Adjust all, and I mean all parameters ingame. You want the 'tough' animal trait to give 0.1% incoming damage multiplier? Go for it, it's in your hands. Seriously
[b]Commonality sliders[/b]
Adjust just how common are traits. Make rare traits super rare, or make everything common. It starts at 24% commonality by default but you can pump it up to 100% or something like 5%.
[b]Animal Window[/b]
Adds a custom window with detailed info about all traits on the selected animal, including stat modifiers and capacity modifiers.
[b]Debug Tools[/b]
There's a debug tab in mod settings that allows you to regenerate traits for all animals, view detailed logs, and some more stuff. You can only access it if you have debug mode active by the way.
For Modders:
[hr]
• There's a 'dynamic discovery' function that automatically finds all Hediffs with the AnimalTraitExtension and applies them to my dictionary, which means it's really easy for modders to add their own traits to their mod's animals without touching my code. Literally just add the hediff and the mod will work with the framework.
• You can contact me through Discord or Steam if you need help...
• You are free to use the Framework to implement traits to your own animals. Implementing traits for modded animals of other authors requires permission from them.
Personal Note from the Author
[hr]
If you're still here, I'd like to share a personal message.
[b]Animals are not background elements of our world. They shape ecosystems, sustain balance, and reflect the health of the planet we all depend on.[/b]
Please, always use your voice for good and to protect those who have none. Sincerely thank you for reading this and I hope you have the best time. Enjoy playing.
[b]RimWorld Version:[/b] 1.6.4633