/// <summary> /// Returns true if the recipe has prerequisite ingredients, and those ingredients can currently be crafted. /// </summary> /// <param name="recipe"></param> /// <returns></returns> public static bool HasPrerequisiteChoices(Map map, RecipeDef recipe) { return (recipe.ingredients.Select(ing => new IngredientSelector(Manager.For(map), ing, 1, recipe)) .Any(ins => IngredientSelector.HasRecipeChoices(map, ins))); }