Name Color Hediff - KonradHeinser/EBSGFramework GitHub Wiki
This hediff comp changes the pawn's name to be the color specified in the comp. This comp only has one option in it, and looks like this:
<comps>
<li Class="EBSGFramework.HediffCompProperties_NameColor">
<color>(198, 122, 211)</color>
</li>
</comps>
Note: If multiple hediffs with this comp are added, the last hediff added will take precedence, though saving and loading may sometimes change what the game considers the "last hediff" in some cases. The color should remain consistent after that if it does change, though it ultimately ends up depending on what kind of nonsense happens to the hediff list in between
This example makes the name purply:
<HediffDef>
<defName>NewNameColor</defName>
<label>test hediff</label>
<description>This is a test hediff</description>
<everCurableByItem>false</everCurableByItem>
<initialSeverity>0.001</initialSeverity>
<stages />
<hediffClass>HediffWithComps</hediffClass>
<scenarioCanAdd>false</scenarioCanAdd>
<comps>
<li Class="EBSGFramework.HediffCompProperties_NameColor">
<color>(198, 122, 211)</color>
</li>
</comps>
</HediffDef>