Module:Magic: Difference between revisions

No change in size ,  15 November 2023
m
Fix typo
(getSpellsProductingItem: Fix Smithing bar check, previously included imbued bars which cannot be made with Superheat spells)
m (Fix typo)
 
Line 411: Line 411:
local item = Items.getItemByID(itemID)
local item = Items.getItemByID(itemID)
if item ~= nil then
if item ~= nil then
isBar = not Shared.tableIsEmtpy(GameData.getEntities(SkillData.Smithing.recipes,
isBar = not Shared.tableIsEmpty(GameData.getEntities(SkillData.Smithing.recipes,
function(recipe)
function(recipe)
return recipe.categoryID == 'melvorD:Bars' and recipe.productID == item.id
return recipe.categoryID == 'melvorD:Bars' and recipe.productID == item.id