Esempio n. 1
0
        public HealthPotion Use()
        {
            HealthPotion temp = bag[0];

            bag.Remove(temp);
            return(temp);
        }
Esempio n. 2
0
 public void Heal(HealthPotion potion)
 {
     hp = hp + potion.heal;
     if (hp > max_hp)
     {
         hp = max_hp;
     }
 }
Esempio n. 3
0
        public void Drop()
        {
            HealthPotion temp = bag[0];

            bag.Remove(temp);
        }
Esempio n. 4
0
        public void Add()
        {
            HealthPotion potion = new HealthPotion();

            bag.Add(potion);
        }