Editing Module:MinerList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 41: | Line 41: | ||
item.product = item.product or '' |
item.product = item.product or '' |
||
-- detect mine cart work |
-- detect mine cart work |
||
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 92: | Line 90: | ||
--products per hour |
--products per hour |
||
item.batch = 24 |
item.batch = 24 |
||
item.durationEffective = |
item.durationEffective = item.respawn and item.respawn / item.nodes |
||
item.productPerHour = item.durationEffective and math.floor(1 / (item.durationEffective + item.downtime / item.batch) * 3600) |
item.productPerHour = item.durationEffective and math.floor(1 / (item.durationEffective + item.downtime / item.batch) * 3600) |
||
item.productPerHourDropping = item.durationEffective and 1 / (item.durationEffective) * 3600 |
item.productPerHourDropping = item.durationEffective and 1 / (item.durationEffective) * 3600 |
||
-- properties per hour |
-- properties per hour |
||
item.xpPerHour = item.xp and item.productPerHour and math.floor(item.xp * item.productPerHour) |
item.xpPerHour = item.xp and item.productPerHour and math.floor(item.xp * item.productPerHour) |
||
Line 122: | Line 120: | ||
:attr{ colspan = '2' } |
:attr{ colspan = '2' } |
||
:wikitext('Mining node') |
:wikitext('Mining node') |
||
⚫ | |||
:tag('th') |
|||
:attr{ colspan = '2' } |
|||
:wikitext('Materials') |
|||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
Line 173: | Line 167: | ||
:tag('td') |
:tag('td') |
||
:addClass('table-na') |
:addClass('table-na') |
||
:attr{ colspan = ' |
:attr{ colspan = '3' } |
||
: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)) |
||
Line 221: | Line 205: | ||
:END() |
:END() |
||
-- XP per hour |
-- XP per hour |
||
:IF( |
:IF(item.xpPerHourDropping) |
||
:IF(item.xpPerHourDropping) |
|||
:tag('td') |
|||
⚫ | |||
:done() |
|||
:ELSE() |
|||
⚫ | |||
:END() |
|||
:ELSE() |
|||
:tag('td') |
:tag('td') |
||
⚫ | |||
:addClass('table-na') |
|||
:wikitext('N/A') |
|||
:done() |
:done() |
||
⚫ | |||
⚫ | |||
:END() |
:END() |
||