Anonymous

Module:Skills/Artisan: Difference between revisions

From Melvor Idle
Fixed calls to getCraftingTable for Ring not including the new high level rings
(Fixed indenting)
(Fixed calls to getCraftingTable for Ring not including the new high level rings)
Line 269: Line 269:
Items.getItems(function(item) return item.tier == "Dragonhide" and item.craftingLevel ~= nil end)
Items.getItems(function(item) return item.tier == "Dragonhide" and item.craftingLevel ~= nil end)
elseif category == "Rings"      then data =  
elseif category == "Rings"      then data =  
Items.getItems(function(item) return item.type == "Ring" and item.craftingLevel ~= nil end)
Items.getItems(function(item) return (item.validSlots ~= nil and Shared.contains(item.validSlots, 'Ring')) and item.craftingLevel ~= nil end)
elseif category == "Necklaces"  then data =  
elseif category == "Necklaces"  then data =  
Items.getItems(function(item) return item.type == "Amulet" and item.craftingLevel ~= nil end)
Items.getItems(function(item) return (item.validSlots ~= nil and Shared.contains(item.validSlots, 'Amulet')) and item.craftingLevel ~= nil end)
elseif category == "Bags" then data =
elseif category == "Bags" then data =
Items.getItems(function(item) return item.type == 'Bag' and item.craftingLevel ~= nil end)
Items.getItems(function(item) return item.type == 'Bag' and item.craftingLevel ~= nil end)