Can't find Tag that makes an item satisfy noble requirements

Started by Atraxa, November 26, 2020, 11:40:57 PM

Previous topic - Next topic

Atraxa

Hey all,

Not new to modding, but I am new to modding Rimworld. I'm trying to create my first mod and I have been able to successfully make changes to a pre-existing item and see those changes reflected in the game. The issue I am having is that the goal of my mod is to make the Stellic Crown satisfy [title]-specific apparel. As near as I can tell, the fact that it has the RoyalTier7 tag, it should already be satisfying that since it is a tier higher than anything we can achieve as players.

I have opened the XML file for Royal Apparel and compared, line by line, the Stellic Crown (which does not satisfy noble apparel requirements) and the Coronet (which does satisfy noble apparel requirements).

The tags that seem to be the ones that would impact this are:
<thingCategories>
<li>HeadgearNoble</li>

and

<tags>
<li>Royal</li>
<li>RoyalTierX</li>

Coronet has RoyalTier6 and Stellic Crown has RoyalTier7 (which I have tried changing to RoyalTier6, but with no change in outcome). Other than that and the fact that the Coronet is craftable, there are no seeming differences. They are both classified as HeadgearNoble, Royal, and an acceptable RoyalTier#.

Does anyone know what I need to change to make it satisfy apparel requirements for nobles of a given rank? I've even looked through the source code for people's mods that have added new title-satisfying items to the game and found nothing notably different. Do I just need to make it craftable? Is that somehow influencing it? I'm at a loss here.

What I have not done is write any C#, but because I am not adding anything new to the game, I am under the impression that simply modifying the ThingDef should do the trick. Am I wrong on that?

Any insight would be appreciated. Not looking for anyone to write code for me, just looking for a nudge in the right direction/to be pointed to the code that affects this.