Beispiel #1
0
        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));
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public static string ProfileCardDescription(byte traitType)
 {
     return(TraitDefinition.GetById(traitType).GetProfileDescription(Game.PlayerStats.IsFemale));
 }
Beispiel #4
0
 public static string Description(byte traitType, bool isFemale)
 {
     return(TraitDefinition.GetById(traitType).GetDescription(Game.PlayerStats.IsFemale));
 }
Beispiel #5
0
 public static string ToString(byte traitType)
 {
     return(TraitDefinition.GetById(traitType).DisplayName);
 }
Beispiel #6
0
 public static byte Rarity(byte traitType)
 {
     return(TraitDefinition.GetById(traitType).Rarity);
 }