示例#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));
     }
 }
示例#2
0
文件: Mob.cs 项目: rmartinho/tglgj2
 public virtual void AttackOther(Mob other)
 {
     var damage = Math.Max(0, Attack - other.Defense);
     other.Health -= damage;
     LastAttack = other;
 }