示例#1
0
        public static bool IsSexualityTrait([NotNull] this TraitDef trait)
        {
            if (trait.exclusionTags.Contains("SexualOrientation"))
            {
                return(true);
            }

            return(trait.Equals(TraitDefOf.Gay) || trait.Equals(TraitDefOf.Bisexual) || trait.Equals(TraitDefOf.Asexual));
        }
示例#2
0
        public bool IsVisible([NotNull] TableSettingsItem <TraitItem> item)
        {
            TraitDef traitDef = item.Data.TraitDef;

            if (traitDef == null)
            {
                return(false);
            }

            if (traitDef.Equals(TorannMagicDefOf.DeathKnight))
            {
                return(_state);
            }

            return(TM_Data.AllClassTraits.Any(i => i.Equals(traitDef)) && _state);
        }
示例#3
0
 public bool IsClassTrait(TraitDef trait)
 {
     return(trait.Equals(TorannMagicDefOf.DeathKnight) || TM_Data.AllClassTraits.Any(t => t.Equals(trait)));
 }