Module:MinerList: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(downtime calculations and xp when dropping) |
(Add materials used (explosives) column) |
||
Line 41: | Line 41: | ||
item.product = item.product or '' |
item.product = item.product or '' |
||
-- detect mine cart work |
-- detect mine cart work or deathstone |
||
item.hideCells = string.find(item.pageName,'Mine Cart Work') |
item.hideCells = string.find(item.pageName,'Mine Cart Work') |
||
item.usesExplosives = string.find(item.pageName,'Deathstone') |
|||
if item.hideCells then |
if item.hideCells then |
||
item.profit = item.coins and tonumber(item.coins) |
item.profit = item.coins and tonumber(item.coins) |
||
else |
|||
item.profit = item.sellPrice |
|||
end |
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 |
-- downtime is very important for gathering-type professions |
||
Line 120: | Line 122: | ||
:attr{ colspan = '2' } |
:attr{ colspan = '2' } |
||
:wikitext('Mining node') |
:wikitext('Mining node') |
||
:done() |
|||
:tag('th') |
|||
:attr{ colspan = '2' } |
|||
:wikitext('Materials') |
|||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
Line 167: | Line 173: | ||
:tag('td') |
:tag('td') |
||
:addClass('table-na') |
:addClass('table-na') |
||
:attr{ colspan = ' |
:attr{ colspan = '5' } |
||
:wikitext('N/A') |
:wikitext('N/A') |
||
:done() |
:done() |
||
:ELSE() |
: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)) |
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product,item.product)) |
||