bool canChangeTrait(int slot, FCPolicy current) { int requiredLevel = slot; if (current.def != FCPolicyDefOf.empty) { return(false); } if (faction.factionLevel >= requiredLevel) { return(true); } return(false); }
string returnTraitAvailibility(int slot, FCPolicy current) { int requiredLevel = slot; if (current.def != FCPolicyDefOf.empty) { return(current.def.label); } if (faction.factionLevel >= requiredLevel) { return("FCSelectANewTrait".Translate()); } return("FCTraitLockedUntilLevel".Translate(slot)); }