2,875
edits
m (Minor formatting) |
m (WIP (partially add level to output table)) |
||
Line 792: | Line 792: | ||
--Set up function for adding rows | --Set up function for adding rows | ||
local buildRow = function(source, type, minqty, qty, weight, totalWeight, expIcon) | local buildRow = function(source, type, level, minqty, qty, weight, totalWeight, expIcon) | ||
if minqty == nil then minqty = 1 end | if minqty == nil then minqty = 1 end | ||
if expIcon == nil then expIcon = '' end | if expIcon == nil then expIcon = '' end | ||
Line 1,044: | Line 1,044: | ||
end) | end) | ||
for i, data in ipairs(dropRows) do | for i, data in ipairs(dropRows) do | ||
table.insert(resultPart, buildRow(data.source, data.type, data.minqty, data.qty, data.weight, data.totalWeight, data.expIcon)) | table.insert(resultPart, buildRow(data.source, data.type, data.level, data.minqty, data.qty, data.weight, data.totalWeight, data.expIcon)) | ||
end | end | ||
edits