RimWorld

RimWorld

Not enough ratings
Mutie's Apparel Traits Framework
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5
File Size
Posted
42.527 MB
May 24, 2024 @ 4:56am
1 Change Note ( view )

Subscribe to download
Mutie's Apparel Traits Framework

Description
A simple framework using Harmony that lets you define traits in .xml which will automatically select to which degree they apply, based on how many pieces of apparel matching a list of defNames and/or tags the pawn is wearing.

Note that this mod requires you to manually create new traits to work with the system. I might release my own pack of apparel traits later!

<?xml version="1.0" encoding="utf-8" ?> <Defs> <!-- Class is necessary to use the apparel trait type --> <TraitDef Class="MutiesApparelTraitFramework.ApparelTraitDef"> <defName>MutiesTShirtDesire</defName> <!-- List of tags and apparel defNames to consider for this trait--> <tagsAndApparelDefNames> <li>Apparel_BasicShirt</li> </tagsAndApparelDefNames> <!-- The lowest degree used, even if the pawn wears fewer listed pieces. --> <minDegree>0</minDegree> <!-- The maximum degree used, even if the pawn wears additional listed pieces. --> <maxDegree>1</maxDegree> <!-- Must have 1 degree per possible value between minDegree and maxDegree --> <degreeDatas> <li> <label>t-shirt desire</label> <description>[PAWN_nameDef] would be super fast if they were wearing a t-shirt.</description> <!-- Degree used when 0 apparel is worn from the list. --> <degree>0</degree> </li> <li> <label>t-shirt desire</label> <description>[PAWN_nameDef] is super fast when wearing a t-shirt</description> <!-- Degree used when 1 apparel is worn from the list --> <degree>1</degree> <statOffsets> <MoveSpeed>40.0</MoveSpeed> </statOffsets> </li> </degreeDatas> </TraitDef> </Defs>
5 Comments
SMercisk Mar 17 @ 6:37am 
Sure, I'll be waiting or make own if I have free time myself.
Mutie  [author] Mar 17 @ 12:52am 
@Smercisk, none that I know of, unfortunately. I'm currently in a bit of a lull before I pick up RimWorld again, but I might do some traits for it myself later in the year (August/September, most likely)
SMercisk Mar 12 @ 3:49pm 
Is there any mods that use this already? This sounds like fun!
Waguuuu May 25, 2024 @ 9:28am 
This has amazing potential and I'm excited to play around with it.
💪💪 Flexcrum 💪💪 May 24, 2024 @ 5:34am 
Cool concept. Gameplay wise it would encourage a more diverse range of outfits.