Esempio n. 1
0
 public void craftPotion()
 {
     craftedPotion.effects = Brew();
     craftedPotion.rarity  = craftedPotion.GenerateRarity();
     craftedPotion.price   = craftedPotion.GeneratePrice();
     craftedPotion.name    = craftedPotion.GenerateName();
 }
Esempio n. 2
0
        public Potion craftPotion(Ingredient ingredient1, Ingredient ingredient2, Ingredient ingredient3)
        {
            List <Ingredient> ingredients = new List <Ingredient>();

            ingredients.Add(ingredient1);
            ingredients.Add(ingredient2);
            ingredients.Add(ingredient3);
            Potion potion = Brew(ingredients);

            potion.GenerateRarity();
            potion.GeneratePrice();
            potion.GenerateName();
            return(potion);
        }