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); }
public void Add(AbilityScoreArray other) { Strength += other.Strength; Dexterity += other.Dexterity; Constitution += other.Constitution; Intelligence += other.Intelligence; Wisdom += other.Wisdom; Charisma += other.Charisma; }
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()); } }