Added in the ability to toggle the showing of special ingredients
Wobin [04-30-14 - 14:31]
Added in the ability to toggle the showing of special ingredients
diff --git a/SousChef.lua b/SousChef.lua
index a023f62..a89624d 100644
--- a/SousChef.lua
+++ b/SousChef.lua
@@ -49,7 +49,7 @@ function SousChef.ParseRecipes()
for ingredientIndex = 1, ingredientCount do
local link = u.GetItemID(GetRecipeIngredientItemLink(listIndex, recipeIndex, ingredientIndex, LINK_STYLE_NORMAL))
-- Store the fact that the ingredient is used
- if ingredientIndex < 3 then
+ if ingredientIndex < 3 or not SousChef.settings.showSpecialIngredients then
SousChef.Pantry[link] = math.max(level, SousChef.Pantry[link] or 0)
SousChef.settings.Pantry[link] = math.max(level, SousChef.Pantry[link] or 0)
else
@@ -100,6 +100,9 @@ local function SousChefCreateSettings()
LAM:AddCheckbox(panel, "useBold", "Use bolder icons", "Swap out rank icon to a more flat display",
function() return SousChef.settings.boldIcon end,
function(value) SousChef.settings.boldIcon = not SousChef.settings.boldIcon end)
+ LAM:AddCheckbox(panel, "specialIngredients", "Show special ingredients", "Indicate if an ingredient is considered a Spice/Flavour rather than the tier of the max ranked recipe you have that uses it",
+ function() return SousChef.settings.showSpecialIngredients end,
+ function(value) SousChef.settings.showSpecialIngredients = not SousChef.settings.showSpecialIngredients end)
LAM:AddColorPicker(panel, "setColour", "Indicator colour",
"Allows you to set the colour of the indicator",
function() return SousChef.settings.colour[1], SousChef.settings.colour[2], SousChef.settings.colour[3] end,
@@ -131,6 +134,7 @@ local function SousChef_Loaded(eventCode, addOnName)
boldIcon = false,
experimentalMatch = false,
processRecipes = true,
+ showSpecialIngredients = false,
ignoredRecipes = {}
}