Module:MinerList: Difference between revisions
Add materials used (explosives) column
(downtime calculations and xp when dropping) |
(Add materials used (explosives) column) |
||
Line 41:
item.product = item.product or ''
-- detect mine cart work or deathstone
item.hideCells = string.find(item.pageName,'Mine Cart Work')
item.usesExplosives = string.find(item.pageName,'Deathstone')
if item.hideCells then
item.profit = item.coins and tonumber(item.coins)
end
-- materials used
item.material = (item.materials and item.materials[1] and item.materials[1].name) or ''
-- downtime is very important for gathering-type professions
Line 120 ⟶ 122:
:attr{ colspan = '2' }
:wikitext('Mining node')
:done()
:tag('th')
:attr{ colspan = '2' }
:wikitext('Materials')
:done()
:tag('th')
Line 167 ⟶ 173:
:tag('td')
:addClass('table-na')
:attr{ colspan = '
:wikitext('N/A')
:done()
:ELSE()
:IF(item.usesExplosives)
:node(plist.two_column_image_text(item.material,'File:' .. item.material .. '.png',item.material,item.material))
:ELSE()
:tag('td')
:addClass('table-na')
:attr{ colspan = '2' }
:wikitext('N/A')
:done()
:END()
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product,item.product))
|