17,101
edits
(_getSpellTable: Sort rows by level requirement) |
(getSpellsProductingItem: Fix Smithing bar check, previously included imbued bars which cannot be made with Superheat spells) |
||
Line 411: | Line 411: | ||
local item = Items.getItemByID(itemID) | local item = Items.getItemByID(itemID) | ||
if item ~= nil then | if item ~= nil then | ||
isBar = | isBar = not Shared.tableIsEmtpy(GameData.getEntities(SkillData.Smithing.recipes, | ||
function(recipe) | |||
return recipe.categoryID == 'melvorD:Bars' and recipe.productID == item.id | |||
end)) | |||
isShard = GameData.getEntityByProperty(SkillData.Magic.randomShards, 'itemID', item.id) ~= nil | isShard = GameData.getEntityByProperty(SkillData.Magic.randomShards, 'itemID', item.id) ~= nil | ||
isGem = GameData.getEntityByProperty('randomGems', 'itemID', itemID) ~= nil | isGem = GameData.getEntityByProperty('randomGems', 'itemID', itemID) ~= nil |