17,105
edits
(Update for v1.1) |
(category -> categoryID) |
||
Line 23: | Line 23: | ||
local recipeArray = GameData.getEntities(SkillData.Cooking.recipes, | local recipeArray = GameData.getEntities(SkillData.Cooking.recipes, | ||
function(recipe) | function(recipe) | ||
return (categoryID == nil or recipe. | return (categoryID == nil or recipe.categoryID == categoryID) and recipe.noMastery == nil | ||
end) | end) | ||
table.sort(recipeArray, function(a, b) return a.level < b.level end) | table.sort(recipeArray, function(a, b) return a.level < b.level end) | ||
Line 265: | Line 265: | ||
local recipeList = GameData.getEntities(SkillData[skillName][recipeKey], | local recipeList = GameData.getEntities(SkillData[skillName][recipeKey], | ||
function(recipe) | function(recipe) | ||
return category.id == nil or recipe. | return category.id == nil or recipe.categoryID == category.id | ||
end) | end) | ||
if Shared.tableIsEmpty(recipeList) then | if Shared.tableIsEmpty(recipeList) then |