Animal Traits System

If you liked this item, please rate it up on Steam Workshop page.

Author: Luved

Last revision: 26 Jan at 01:21 UTC

File size: 356.47 KB

On Steam Workshop

Description:
Animal Traits System – Core Framework

Lore and Vanilla-friendly, 63 custom-made animal traits and a framework for adding more, for you to explore and discover :]

I think every animal has something unique about it if you pay enough attention.


What is this?

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:

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.

This core package comes with ~63 Traits

A few examples:

Hungry: +25% hunger rate, +5% move speed, +15% metabolism
Sated: -30% hunger rate, +10% metabolism
Tough: -15% incoming damage, +15% injury healing, +10% pain threshold
Strong: +30% melee damage, +15% carrying capacity
Fast: +20% move speed, +15% dodge chance
Smart: +50% training speed, +15% consciousness
Docile: +35% trainability, -20% wildness, -30% revenge chance
Alpha: +40% melee damage, +15% consciousness, +10% manipulation

I also made some unique and rarer species-specific Traits:

Muffalo Herd Leader: +20% damage, -15% incoming damage, +10% sight/hearing
Thrumbo Ancient One: +50% lifespan, -20% incoming damage, +20% consciousness
Wolf Pack Alpha: +35% damage, +10% move speed, +20% consciousness
Horse Warhorse: +40% damage, -20% incoming damage, +10% pain threshold
Chicken Champion Layer: +75% egg laying, +15% metabolism

And 40+ more unique traits…

Configurable Trait Assignment System
Weight-based rarity: Common traits appear often, rare traits are special finds

Savegame compatible
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.

Compability with other mods
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.

Minimum/Maximum traits per animal:
Control how many traits an animal can have, I recommend like 2, that’s a good spot for me

New stats for animals:
Litter size (amount of children)
Egg laying amount (for chickens and stuff)
Revenge Chance Modifier on Tame failed
Revenge Chance Modifier on Damage taken

Integration with Pawn columns
You can view traits and stats directly in the animal list for ease of viewing

Animal-specific trait restrictions:
Prevent nonsensical traits on certain species like herd-leader (for muffalos) on cougars.

Exclusivity rules
Prevent conflicting traits from being assigned together because I didn’t want strong and weak on the same animal, for example.

Mod settings for full customization
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

Commonality sliders
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%.

Animal Window
Adds a custom window with detailed info about all traits on the selected animal, including stat modifiers and capacity modifiers.

Debug Tools
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.


More info:

For Modders:

• 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…


Personal Note from the Author

If you’re still here, I’d like to share a personal message.

Animals are not background elements of our world. They shape ecosystems, sustain balance, and reflect the health of the planet we all depend on.

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.

RimWorld Version: 1.6.4633

Download
Required items:

Click the title to search on this site.


HarmonySteam Workshop