static void Main(string[] args) { Hero hero = new Hero(name: "Ivan", nickName: "Ruski", health: 100, mana: 100, manaRegenerationRate: 2); Enemy enemy = new Enemy(health: 100, mana: 100, damage: 20); Weapon wep = new Weapon("Damn", 20); hero.Equip(wep); Dungeon test = new Dungeon(hero, enemy); test.Spawn(hero); Commands(test,hero,enemy); }
public virtual int Attack(Weapon weapon) { return weapon.Damage; }
public virtual int Equip(Weapon weapom) { return weapom.Damage; }
public override int Equip(Weapon weapom) { return WDamage+= weapom.Damage; }
public override int Attack(Weapon weapon) { return WDamage + weapon.Damage; }