Exemplo n.º 1
0
        public void UpdatingTheSizeChangesTheModifier()
        {
            var smallToStart = new SizeStats(CharacterSize.Small, 32, 28);

            smallToStart.SetSize(CharacterSize.Large, 89, 283);
            Assert.Equal(-1, smallToStart.PositiveSizeModifier.Modifier);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the size for race.
 /// </summary>
 /// <param name="size">Size to assign to.</param>
 /// <param name="race">Race selected.</param>
 private void SetSizeForRace(SizeStats size, Race race)
 {
     // Update Size
     size.SetSize(race.SizeSetting, race.HeightRange.Roll(), race.WeightRange.Roll());
 }