Пример #1
0
 public Damage Attack(LivingBase target)
 {
     if (isDead)
     {
         return(Damage.NONE);
     }
     return(target.DoDamage(new Damage(power)));
 }
Пример #2
0
 public Damage Attack(LivingBase target, Damage damage)
 {
     if (isDead)
     {
         return(Damage.NONE);
     }
     return(target.DoDamage(damage));
 }
Пример #3
0
 public int Attack(LivingBase target)
 {
     if (isDead)
     {
         return(-1);
     }
     return(target.DoDamage(new Damage(power)));
 }
Пример #4
0
        private void Strike(Encounter encounter, LivingBase user, LivingBase target)
        {
            Damage amount = user.Attack(target);

            GameEngine.game.AppendText($"{user.name} slashes {target.name} for {amount.amount} {amount.type} damage.\n");
        }