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

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

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

            bag.Add(potion);
        }