Exemplo n.º 1
0
        bool canChangeTrait(int slot, FCPolicy current)
        {
            int requiredLevel = slot;

            if (current.def != FCPolicyDefOf.empty)
            {
                return(false);
            }

            if (faction.factionLevel >= requiredLevel)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        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));
        }