Esempio n. 1
0
 public void tick(bool enemy, int x, int y, Combat combat)
 {
     combat.loseHealth(enemy, x, y, amount, new lose[] { lose.fire, lose.burn });
     if (amount == 1)
     {
         amount = 0;
     }
     else
     {
         amount = amount / 2;
     }
 }
Esempio n. 2
0
 public static void heavyAttack(bool enemy, int x, int y, int damage, Combat combat)
 {
     combat.loseHealth(enemy, x, y, damage * 2, new lose[] { lose.physical });
     combat.loseStam(enemy, x, y, 1, new lose[] { lose.cost });
 }