Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
getFoodNavbox: Exclude perfect variant of Lemon cake
(getFoodNavbox: Exclude unobtainable item)
(getFoodNavbox: Exclude perfect variant of Lemon cake)
Line 71: Line 71:
if not foundIDs[recipe.productID] then
if not foundIDs[recipe.productID] then
foundIDs[recipe.productID] = true
foundIDs[recipe.productID] = true
if recipe.perfectCookID ~= nil then
foundIDs[recipe.perfectCookID] = true
end
if recipe.noMastery == nil then
if recipe.noMastery == nil then
local cookedItem = Items.getItemByID(recipe.productID)
local cookedItem = Items.getItemByID(recipe.productID)
Line 85: Line 88:
if perfectItem ~= nil then
if perfectItem ~= nil then
perfectName = perfectItem.name
perfectName = perfectItem.name
foundIDs[recipe.perfectCookID] = true
end
end
end
end