Example #1
0
 public static void UpdateData()
 {
     // For some reason, this requires a restart.
     if (BoughtSlavesAsColonists)
     {
         if (SlavePawnKindDef.apparelTags.Contains(SlaveCollarApparalTag))
         {
             SlavePawnKindDef.apparelTags.Remove(SlaveCollarApparalTag);
         }
         SlavePawnKindDef.apparelAllowHeadwearChance = 0;
     }
     else
     {
         if (!SlavePawnKindDef.apparelTags.Contains(SlaveCollarApparalTag))
         {
             SlavePawnKindDef.apparelTags.Add(SlaveCollarApparalTag);
         }
         SlavePawnKindDef.apparelAllowHeadwearChance = 100;
     }
     SlavePawnKindDef.ResolveReferences();
     //SlaveCollarThingDef.ResolveReferences();
 }