Пример #1
0
 public void Fight(ICharacter attacker, ICharacter defender, ILayer layer)
 {
     defender.TakeDamage(attacker.Stats.Damage);
     if (!defender.Alive)
     {
         int goldToLoot = defender.DropLoot();
         attacker.AddGold(goldToLoot);
         layer.RemoveCharacter(defender);
     }
 }