コード例 #1
0
ファイル: Bag.cs プロジェクト: Honeydule/Herepeyjet
 public void takePotion(Potion potion)
 {
     usedPotion = PotionBag.IndexOf(potion); //recherche le bon type de potion
     PotionBag.Remove(usedPotion);           //la retire du sac
 }
コード例 #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);
        }
コード例 #3
0
        public static Potion AgilityPotion()
        {
            Potion AgilityPotion = new Potion(0, 0, 15, 15);

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

            return(lifePotion);
        }