public void AttackDwarf(Dwarf target) { if ((target.GetDefense() - this.baseAttackPower - this.Armor.GetDamage() - this.Weapon.GetDamage()) < 0 && target.GetHP() > 0) { target.SetHP(target.GetHP() + target.GetDefense() - this.baseAttackPower - this.Armor.GetDamage() - this.Weapon.GetDamage()); } }
public void HealDwarf(Dwarf target) { target.SetHP(target.GetHP() + this.baseHealingPower); }
public void HealDwarf(Dwarf target) { target.SetHP(target.GetHP() + this.BaseHealingPower + this.SpellBook.GetHealingPower() + this.Weapon.GetHealingPower() + this.Armor.GetHealingPower()); }