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)); }
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); }
public bool IsClassTrait(TraitDef trait) { return(trait.Equals(TorannMagicDefOf.DeathKnight) || TM_Data.AllClassTraits.Any(t => t.Equals(trait))); }