public void craftPotion() { craftedPotion.effects = Brew(); craftedPotion.rarity = craftedPotion.GenerateRarity(); craftedPotion.price = craftedPotion.GeneratePrice(); craftedPotion.name = craftedPotion.GenerateName(); }
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); }