4,951
edits
Falterfire (talk | contribs) (updated getCookedItemsTable) |
Falterfire (talk | contribs) (forcibly removing Lemon Cake) |
||
Line 18: | Line 18: | ||
itemArray = Items.getItems(function(item) return item.cookingCategory == 0 end) | itemArray = Items.getItems(function(item) return item.cookingCategory == 0 end) | ||
elseif category == "Furnace" then | elseif category == "Furnace" then | ||
itemArray = Items.getItems(function(item) return item.cookingCategory == 1 end) | itemArray = Items.getItems(function(item) return item.cookingCategory == 1 and item.name ~= 'Lemon Cake' end) | ||
elseif category == "Pot" then | elseif category == "Pot" then | ||
itemArray = Items.getItems(function(item) return item.cookingCategory == 2 end) | itemArray = Items.getItems(function(item) return item.cookingCategory == 2 end) | ||
else | else | ||
itemArray = Items.getItems(function(item) return item.cookingCategory ~= nil end) | itemArray = Items.getItems(function(item) return item.cookingCategory ~= nil and item.name ~= 'Lemon Cake' end) | ||
end | end | ||
table.sort(itemArray, function(a, b) return a.cookingLevel < b.cookingLevel end) | table.sort(itemArray, function(a, b) return a.cookingLevel < b.cookingLevel end) |