Beispiel #1
0
 public void takePotion(Potion potion)
 {
     usedPotion = PotionBag.IndexOf(potion); //recherche le bon type de potion
     PotionBag.Remove(usedPotion);           //la retire du sac
 }
Beispiel #2
0
        public static Potion StrengthPotion() //augmente les stats temporairement (prochain donjon/donjon en cours)
        {
            Potion StrengthPotion = new Potion(0, 15, 0, 15);

            return(StrengthPotion);
        }
Beispiel #3
0
        public static Potion AgilityPotion()
        {
            Potion AgilityPotion = new Potion(0, 0, 15, 15);

            return(AgilityPotion);
        }
Beispiel #4
0
        public static Potion LifePotion() //rend de la vie
        {
            Potion lifePotion = new Potion(30, 0, 0, 10);

            return(lifePotion);
        }