Esempio n. 1
0
 public bool TakeDmg(int amount, Player player)
 {
     CurrentHP -= amount;
     if (CurrentHP <= 0)
     {
         CurrentHP = 0;
         player.GetExp(Exp);
         player.Gold += Gold;
         return true;
     }
     return false;
 }