Ejemplo n.º 1
0
 public override void AttackOther(Mob other)
 {
     base.AttackOther(other);
     if (other.Health < 0) {
         _level[new Point(other.X, other.Y)].Mob = null;
         AddMessage(string.Format("You kill the {0}!", other.Name));
     }
 }
Ejemplo n.º 2
0
 public virtual void AttackOther(Mob other)
 {
     var damage = Math.Max(0, Attack - other.Defense);
     other.Health -= damage;
     LastAttack = other;
 }