RimWorld

RimWorld

Not enough ratings
Prefer Preferred Apparel Color
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
246.279 KB
26 Jan @ 3:48am
12 Jun @ 11:40am
2 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Prefer Preferred Apparel Color

In 1 collection by llunak
llunak's RimWorld mods
12 items
Description
This mod makes pawns slightly prefer apparel of their favourite or ideo's color.

Description

While the game provides a little mood bonus for pawns wearing apparel of preferred color, there is no such preference when pawns select apparel to wear. This means that if apparel policy of pawns changes regularly, e.g. for summer/winter or for fight/peace, they will end up with randomly mixed apparel from each other. This mod makes apparel matching pawn's preferences to be slightly more likely to be selected, similarly to how the game treats apparel from human leather for cannibal pawns.

Additionally, this mod provides related fixes:
  • Avoid rounding errors when counting the at least 60% criteria, which prevented having 3 out of 5 apparel items of the right color count as sufficient.
  • Ignore the extra apparel slot for research kits added by the Research Reinvented mod, if present. Kits cannot be colored, and the extra slot would change e.g. 3 out of 5 apparel items to be 3 out of 6.

Related mods
  • Self Dyeing - Useful when a pawn decides to wear a new apparel item e.g. because of a significant quality or hp difference.

GitHub: https://github.com/llunak/rimworld-preferpreferredapparelcolor
11 Comments
Yoann 4 Feb @ 8:28am 
Oh, I use already this mod. I can use it to disallow <51% hp face mask, correct.
seraphonica 4 Feb @ 8:22am 
@Yoann You may see benefit by using Wiri's Compositable Loadouts. It has a bit of a learning curve, but this Rundown by MysteriousFawx helped me get there: https://youtu.be/SczjMn7jGs4?si=UlEC_cGNuMk4-8dF
Yoann 31 Jan @ 2:18pm 
Yes, it's a way to do, but in case of new apparels shortage, I prefer my pawns to keep equiped tattered apparels instead of wearing nothing.
My way works fine, but not compatible with this mod :/
llunak  [author] 31 Jan @ 1:58pm 
@Yoann: Pawns not wearing tattered apparel is usually handled by not allowing <51% hp in apparel policies.
Yoann 31 Jan @ 12:29pm 
I had to remove this mod, it caused my pawns to keep tattered face mask instead of changing them for new ones, because of the preferred color.
Yoann 26 Jan @ 12:24pm 
There is already a mod for Apparel Ownership , but yes it means lot of micromanagement.
That's why I told "automated", to have both.

I imagine it working a bit like bed ownership:
When a pawn wears an apparel, he tags it as owned by him.
If the pawn decides to wear another apparel on same layer, two case:
_the apparel is same kind (parka for a better parka) -> the tag on old apparel is removed
_the apparel is another kind (parka for duster/armor) -> the tag on old apparel stay (and so cannot be stolen by other pawns).
Also, if an apparel has not been worn for X days, the tag would disapear.

It would only require for player to set which apparels are similar kind (armor/winter/summer...)
llunak  [author] 26 Jan @ 11:14am 
@Yoann: I don't think an apparel ownership mod would be any good. As I've said, some decisions are hard to be automated. You either end up micromanaging switching apparel or replacing worn out apparel, cannot reasonably have both.
Yoann 26 Jan @ 9:44am 
Thank you for the answer. So, a little help, but no miracle.

Still good in waiting an automated apparel ownership mod.
llunak  [author] 26 Jan @ 8:59am 
@Yoann: Basically each pawn from time to time scores each suitable apparel item and the best scoring item is used. The scoring function is non-trivial, but the basis of it is sharp+blunt armour and the percentage of hp remaining, which then get adjusted by a number of additional factors (cold/heat, tainted, etc.).

Which means that I don't know the answer to that specific question, as it depends on a number of things, such as which pawn checks first and what material the dusters are made of. If Billy goes first and the excellent duster has a good material, the armour difference may result in Billy deciding it's better and taking it from the other pawn.
llunak  [author] 26 Jan @ 8:59am 
(continued, comment size limit)

The purpose of the mod is to nudge the chances pawns will reuse the same item. It cannot be perfect, for example it's hard to say when exactly an item's quality should matter more than the color, especially given the tiny mood buff for colors. So basically dyeing apparel for pawns is a vanity project :).

That said, I've been running this mod for a while and so far I'm happy with the result. I use Better Pawn Management's alert button for raids, and without this it was a mess. With the mod pawns appear to keep their colors (and if it doesn't work out, Auto Dyeing fixes that quickly).