public void Enchant(Armor.Armor armor) { if (null == armor) { throw new ArgumentNullException(nameof(armor), "Argument cannot be null."); } armor.ArmorClass?.EnhancementBonuses?.Add(() => this.SpecialAbilityBonus); armor.Hardness?.EnhancementBonuses?.Add(() => Convert.ToByte(2 * this.SpecialAbilityBonus)); armor.HitPoints?.EnhancementBonuses?.Add(() => Convert.ToByte(10 * this.SpecialAbilityBonus)); }
public Mercenary() { Class = "Mercenary"; Health = 100; HitPoints = 20; MaxSpeed = 100; Weapons = new Weapon(); Armor = new Armor.Armor(); Coins = 100; Level = 1; Tribe = "Orthog"; CurrentLocation = 0; }
public Gunner() { Class = "Gunner"; Health = 100; HitPoints = 45; MaxSpeed = 85; Weapons = new Weapon(); Armor = new Armor.Armor(); Coins = 100; Level = 1; Knapsack = new Knapsack(); CurrentLocation = 0; }
public Magician() { Class = "FastRunner"; Health = 100; HitPoints = 20; MaxSpeed = 100; Weapons = new Weapon(); Armor = new Armor.Armor(); Coins = 100; Level = 1; EffectiveRange = Level * 5; CurrentLocation = 0; }
public HeavyHitter() { Class = "HeavyHitter"; Health = 100; HitPoints = 60; MaxSpeed = 65; Weapons = new Weapon(); Armor = new Armor.Armor(); Coins = 100; Level = 1; Knapsack = new Knapsack(); CurrentLocation = 0; }
public FastRunner() { Class = "FastRunner"; Health = 100; HitPoints = 20; MaxSpeed = 100; Weapons = new Weapon(); Armor = new Armor.Armor(); Coins = 100; Level = 1; CurrentLocation = 0; Knapsack = new Knapsack(); }
public void Enchant(Armor.Armor armor) { // Intentionally blank }