示例#1
0
 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());
     }
 }
示例#2
0
 public void HealDwarf(Dwarf target)
 {
     target.SetHP(target.GetHP() + this.baseHealingPower);
 }
示例#3
0
 public void HealDwarf(Dwarf target)
 {
     target.SetHP(target.GetHP() + this.BaseHealingPower + this.SpellBook.GetHealingPower() + this.Weapon.GetHealingPower() + this.Armor.GetHealingPower());
 }