Пример #1
0
 public void Min(AbilityScoreArray other)
 {
     Strength     = Math.Min(Strength, other.Strength);
     Dexterity    = Math.Min(Dexterity, other.Dexterity);
     Constitution = Math.Min(Constitution, other.Constitution);
     Intelligence = Math.Min(Intelligence, other.Intelligence);
     Wisdom       = Math.Min(Wisdom, other.Wisdom);
     Charisma     = Math.Min(Charisma, other.Charisma);
 }
Пример #2
0
 public void Add(AbilityScoreArray other)
 {
     Strength     += other.Strength;
     Dexterity    += other.Dexterity;
     Constitution += other.Constitution;
     Intelligence += other.Intelligence;
     Wisdom       += other.Wisdom;
     Charisma     += other.Charisma;
 }
Пример #3
0
 public void GenerateAbilityScores()
 {
     Scores = new AbilityScores()
     {
         PointBuyCost = new List <int>()
         {
             0, 1, 2, 3, 4, 5, 7, 9
         },
         PointBuyPoints   = 27,
         PointBuyMinScore = 8,
         PointBuyMaxScore = 15
     };
     foreach (AbilityScoreArray a in AbilityScoreArray.Generate())
     {
         Scores.Arrays.Add(a.ToString());
     }
 }