Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
Adding expansion icon to monster drop table, if the code is good.
m (Padding for mining mastery requirement)
(Adding expansion icon to monster drop table, if the code is good.)
Line 662: Line 662:
local monster = GameData.getEntityByID('monsters', drop.id)
local monster = GameData.getEntityByID('monsters', drop.id)
if monster ~= nil then
if monster ~= nil then
table.insert(dropRows, {source = Icons.Icon({monster.name, type='monster'}), type = '[[Monster]]', minqty = drop.minQty, qty = drop.maxQty, weight = drop.dropWt, totalWeight = drop.totalWt})
table.insert(dropRows, {source = Icons.getExpansionIcon(drop.id) .. Icons.Icon({monster.name, type='monster'}), type = '[[Monster]]', minqty = drop.minQty, qty = drop.maxQty, weight = drop.dropWt, totalWeight = drop.totalWt})
end
end
end
end
29

edits