public void addMagicPotion(MagicPotion potion) { if (magicPotions.Count() < 5) { magicPotions.Add(potion); } }
public int useMagicPotion() { if (magicPotions.Count() > 0) { MagicPotion mp = magicPotions.Last(); magicPotions.RemoveAt(magicPotions.Count() - 1); return(mp.Use()); } else { return(0); } }