public static bool TraitConflict(Vector2 traits) { var t1 = TraitDefinition.GetById((byte)traits.X); var t2 = TraitDefinition.GetById((byte)traits.Y); return(t1.TraitConflicts.Contains(t2) || t2.TraitConflicts.Contains(t1)); }
public static void SetTraitVector(Vector2 traits) { List <TraitDefinition> list = new List <TraitDefinition>(2); if (traits.X != 0) { list.Add(TraitDefinition.GetById((byte)traits.X)); } if (traits.Y != 0) { list.Add(TraitDefinition.GetById((byte)traits.Y)); } Traits = list.ToArray(); }
public static string ProfileCardDescription(byte traitType) { return(TraitDefinition.GetById(traitType).GetProfileDescription(Game.PlayerStats.IsFemale)); }
public static string Description(byte traitType, bool isFemale) { return(TraitDefinition.GetById(traitType).GetDescription(Game.PlayerStats.IsFemale)); }
public static string ToString(byte traitType) { return(TraitDefinition.GetById(traitType).DisplayName); }
public static byte Rarity(byte traitType) { return(TraitDefinition.GetById(traitType).Rarity); }