def estimate_potion_combinations(self): for option in Ingredient: print(str(option.name) + ' = ' + str(option.value)) i1 = Ingredient(int(input('Ingredient #1 Number? '))) i2 = Ingredient(int(input('Ingredient #2 Number? '))) if PotionCombinations.postion_list_search(self.potion_list, i1, i2): return None #done else: ##handling for unknown ingredients if i1 not in self.ingredient_dic: ip = IngredientProperties(i1) ip.set_alchemical_options( AlchemicalCombinations().inital_alchemical_options()) self.ingredient_dic[i1] = ip if i2 not in self.ingredient_dic: ip = IngredientProperties(i2) ip.set_alchemical_options( AlchemicalCombinations().inital_alchemical_options()) self.ingredient_dic[i2] = ip potionStats = PotionCombinations.generate_ingredient_potions( self.ingredient_dic[i1], self.ingredient_dic[i2]) for stat in potionStats: print(stat)
def estimate_potion_combinations(self): for option in Ingredient: print(str(option.name) + ' = ' + str(option.value)) i1 = Ingredient(int(input('Ingredient #1 Number? '))) i2 = Ingredient(int(input('Ingredient #2 Number? '))) if PotionCombinations.postion_list_search(self.potion_list, i1, i2): return None #done else: ##handling for unknown ingredients if i1 not in self.ingredient_dic: ip = IngredientProperties(i1) ip.set_alchemical_options(AlchemicalCombinations().inital_alchemical_options()) self.ingredient_dic[i1] = ip if i2 not in self.ingredient_dic: ip = IngredientProperties(i2) ip.set_alchemical_options(AlchemicalCombinations().inital_alchemical_options()) self.ingredient_dic[i2] = ip potionStats = PotionCombinations.generate_ingredient_potions(self.ingredient_dic[i1], self.ingredient_dic[i2]) for stat in potionStats: print(stat)
def distinct_brewed_potions(self): for potion in PotionCombinations.distinct_potions_list(self.potion_list): print(str(potion.to_string() + ' #' + potion.get_hash()))
def distinct_brewed_potions(self): for potion in PotionCombinations.distinct_potions_list( self.potion_list): print(str(potion.to_string() + ' #' + potion.get_hash()))