private void AddRecipe(Recipe recipe) { if (!Recipes.ContainsKey(recipe.SpellId)) { Recipes.Add(recipe.SpellId, recipe); recipe.InitIngredients(); recipe.InitTools(); } }
public void AddRecipe(Recipe recipe) { if (Recipes.ContainsKey(recipe.ID)) { return; } Recipes.Add(recipe.ID, recipe); recipe.InitIngredients(); recipe.InitTools(); }
public void AddRecipe(Recipe recipe) { if (Recipes.ContainsKey(recipe.ID)) return; Recipes.Add(recipe.ID, recipe); recipe.InitIngredients(); recipe.InitTools(); }