Exemple #1
0
        public HealthPotion Use()
        {
            HealthPotion temp = bag[0];

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

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

            bag.Add(potion);
        }