public Flail() { Name = "Flail"; Dice = new Dice(10); Range = 1; Enchanment = 0; WeaponType = WeaponTypeEnum.Flail; }
public EnchantedLongSword() { Name = "Long Sword of Mighty Swing"; Dice = new Dice(8); Enchanment = 1; WeaponType = WeaponTypeEnum.HeavyBlade; DamageType = "Force"; }
public Rapier() { Name = "Rapier"; Dice = new Dice(8); Range = 1; Enchanment = 0; DamageType = "Stab"; WeaponType = WeaponTypeEnum.LightBlade; }
public ShortBow() { Name = "ShortBow"; Dice = new Dice(8); Range = 30; Enchanment = 0; DamageType = "Stab"; WeaponType = WeaponTypeEnum.Bow; }
public Scythe() { Name = "Scythe"; Dice = new Dice(4,2); Range = 1; Enchanment = 0; DamageType = "Slash"; WeaponType = WeaponTypeEnum.HeavyBlade; }
public Handaxe() { Name = "Handaxe"; Dice = new Dice(6); Range = 1; Enchanment = 0; DamageType = "Slash"; WeaponType = WeaponTypeEnum.Axe; }
public LongSword() { Name = "Longsword"; Dice = new Dice(8); Range = 1; Enchanment = 0; DamageType = "Slash"; WeaponType = WeaponTypeEnum.HeavyBlade; }
public Club() { Name = "Club"; Dice = new Dice(6); Range = 1; Enchanment = 0; DamageType = "Blunt"; WeaponType = WeaponTypeEnum.Mace; }
public QwarterStaff() { Name = "QwarterStaff"; Dice = new Dice(8); Range = 1; Enchanment = 0; DamageType = "Blunt"; WeaponType = WeaponTypeEnum.Spear; }
public Scimitar() { Name = "Scimitar"; Dice = new Dice(8); Range = 1; Enchanment = 0; DamageType = "Slash"; WeaponType = WeaponTypeEnum.LightBlade; }
public BattleAxe() { Name = "BattleAxe"; Dice = new Dice(10); Range = 1; Enchanment = 0; DamageType = "Slash"; WeaponType = WeaponTypeEnum.Axe; }
public Mace() { Name = "Mace"; Dice = new Dice(8); Enchanment = 0; Range = 1; CanOneHanded = true; DamageType = "Blunt"; WeaponType = WeaponTypeEnum.Mace; }
public GreatSword() { Name = "GreatSword"; Dice = new Dice(6,2); Enchanment = 0; Range = 1; CanOneHanded = false; DamageType = "Slash"; WeaponType = WeaponTypeEnum.HeavyBlade; }
public MorningStar() { Name = "MorningStar"; Dice = new Dice(10); Enchanment = 0; Range = 1; CanOneHanded = true; DamageType = "Blunt"; WeaponType = WeaponTypeEnum.Flail; }
public Spear() { Name = "Spear"; Dice = new Dice(8); Enchanment = 0; Range = 2; CanOneHanded = true; DamageType = "Stab"; WeaponType = WeaponTypeEnum.Spear; }
public Dagger() { Name = "Dagger"; Dice = new Dice(4); Enchanment = 0; Range = 1; CanOneHanded = true; DamageType = "Stab"; WeaponType = WeaponTypeEnum.LightBlade; }
public void DieRollDistribution() { const int numberOfTestRolls = 100000; var results = new int[8]; var d10 = new Dice(8); for (var i = 0; i < numberOfTestRolls; i++) { results[d10.Roll() - 1]++; } var counter = 1; foreach (var result in results) { Console.WriteLine($"{counter++}: {result}"); } Assert.That(results.Max() - results.Min(), Is.LessThan(numberOfTestRolls*0.02)); }
public Gnoll() { Name = "BeepBoop"; Size = Size.Medium; Basespeed = new BaseSpeed(30); Ac = 15; TotalHp = new Dice(8, 2).Roll(2); CurrentHp = TotalHp; FortSave = 4; ReflexSave = 0; WillSave = 0; Equipment.Weapons.Add(new Spear()); Equipment.Armor.Add(new LeatherArmor()); Equipment.Shield = new WoodenShield(); Attributes = new Attributes(15, 10, 13, 8, 11, 8); AttackBonus = 1; }