public void addHealthPotion(HealthPotion potion) { if (healthPotions.Count() < 5) { healthPotions.Add(potion); } }
public int useHealthPotion() { if (healthPotions.Count() > 0) { HealthPotion hp = healthPotions.Last(); healthPotions.RemoveAt(healthPotions.Count() - 1); return(hp.Use()); } else { return(0); } }