2,875
edits
m (Add missing level requirements) |
m (Add moblevel calculation) |
||
Line 843: | Line 843: | ||
iconName = SourceOverrides[drop.id] | iconName = SourceOverrides[drop.id] | ||
end | end | ||
if monster ~= nil then | if monster ~= nil then | ||
local monsterLevel = Monsters._getMonsterCombatLevel(monster) | |||
table.insert(dropRows, { | table.insert(dropRows, { | ||
source = Icons.Icon({iconName, type='monster'}), | source = Icons.Icon({iconName, type='monster'}), | ||
type = '[[Monster]]', minqty = drop.minQty, | type = '[[Monster]]', minqty = drop.minQty, | ||
level = '[[File:File:Combat.svg|25px|link=Combat]] Level ' .. | level = '[[File:File:Combat.svg|25px|link=Combat]] Level ' .. monsterLevel, | ||
qty = drop.maxQty, | qty = drop.maxQty, | ||
weight = drop.dropWt, | weight = drop.dropWt, | ||
Line 1,243: | Line 1,245: | ||
function p.getItemSourceTables(frame) | function p.getItemSourceTables(frame) | ||
-- Temp | -- Temp | ||
local args = frame:getParent().args | --local args = frame:getParent().args | ||
local itemName = args.item or args[1] | --local itemName = args.item or args[1] | ||
local itemName = 'Diamond' | |||
--local itemName = frame.args ~= nil and frame.args[1] or frame | --local itemName = frame.args ~= nil and frame.args[1] or frame | ||
local item = Items.getItem(itemName) | local item = Items.getItem(itemName) |
edits