Пример #1
0
 public void UsePotion(ref Player player)
 {
     player.SetHealth(-50);
     player.DelItemInvenyory("Health Potion");
     if (player.GetHealth() > 100)
     {
         player.SetHealth(-(player.GetMaxHealth() - player.GetHealth()));
     }
 }