Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
Fix openable item sources
(Fix reference to function)
(Fix openable item sources)
Line 342: Line 342:
if item2.dropTable ~= nil then
if item2.dropTable ~= nil then
for j, loot in ipairs(item2.dropTable) do
for j, loot in ipairs(item2.dropTable) do
if loot.id == item.id then
if loot.itemID == item.id then
table.insert(lootPart, Icons.Icon({item2.name, type='item', notext=true}))
table.insert(lootPart, Icons.Icon({item2.name, type='item', notext=true}))
break
break
Line 654: Line 654:
for j, loot in ipairs(item2.dropTable) do
for j, loot in ipairs(item2.dropTable) do
totalWt = totalWt + loot.weight
totalWt = totalWt + loot.weight
if loot.id == item.id then
if loot.itemID == item.id then
wt = loot.weight
wt = loot.weight
minQty = loot.minQuantity
minQty = loot.minQuantity