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 |
|||
⚫ | |||
end |
end |
||
-- |
-- profitability |
||
item. |
item.profitPerXP = item.profit and item.xp and item.profit / item.xp |
||
-- DOWNTIME VERY IMPORTANT FOR GATHERING TYPE PROFESSIONS |
|||
-- downtime is very important for gathering-type professions |
|||
item.downtime = 60 -- THIS IS AN INITIAL GUESS, DO NOT USE THIS VALUE |
|||
-- initial guesses |
|||
item. |
item.batch = 24 |
||
⚫ | |||
-- these numbers are based roughly on how far the nodes are from a storage rift or shop or bank |
|||
-- 20s per room to traverse |
|||
-- duration and relocation times arent used for miner, only respawn time and number of nodes |
|||
if item.hideCells then |
|||
item.downtime = 0 |
|||
item.nodes = 1 |
|||
⚫ | |||
elseif string.find(item.pageName,'Iron Ore') then |
|||
item.downtime = 20 |
|||
item.nodes = 10 |
|||
elseif string.find(item.pageName,'Cabranese Ore') then |
|||
item.downtime = 120 -- teleport to mine south west to bank and run back |
|||
item.nodes = 10 |
|||
elseif string.find(item.pageName,'Flantium Ore') then |
|||
item.downtime = 100 |
|||
item.nodes = 10 |
|||
elseif string.find(item.pageName,'Adathril Ore') then |
|||
item.downtime = 60 |
|||
item.nodes = 10 |
|||
elseif string.find(item.pageName,'Flint') then |
|||
item.downtime = 20 |
|||
item.nodes = 6 |
|||
elseif string.find(item.pageName,'Basalt') then |
|||
item.downtime = 60 |
|||
item.nodes = 6 |
|||
elseif string.find(item.pageName,'Andesite') then |
|||
item.downtime = 60 |
|||
item.nodes = 6 |
|||
elseif string.find(item.pageName,'Granite') then |
|||
item.downtime = 20 |
|||
item.nodes = 6 |
|||
elseif string.find(item.pageName,'Deathstone') then |
|||
item.downtime = 120 -- includes getting more explosives |
|||
item.nodes = 6 |
|||
end |
|||
--products per hour |
|||
item.batch = 24 |
|||
item.durationEffective = item.duration and item.respawn and (item.duration + item.respawn) / item.nodes |
|||
⚫ | |||
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) |
||
item.xpPerHourDropping = item.xp and item.productPerHourDropping and math.floor(item.xp * item.productPerHourDropping) |
|||
item.profitPerHour = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
item.profitPerHour = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
||
end |
end |
||
Line 122: | Line 82: | ||
: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 147: | Line 103: | ||
:tag('th') |
:tag('th') |
||
:wikitext('XP/hr') |
:wikitext('XP/hr') |
||
:done() |
|||
:tag('th') |
|||
:wikitext('XP/hr<br>(Discarding)') |
|||
:done() |
:done() |
||
:done() |
:done() |
||
Line 173: | Line 126: | ||
: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 219: | Line 162: | ||
:ELSE() |
:ELSE() |
||
:node(plist.unknown_value_cell(1)) |
:node(plist.unknown_value_cell(1)) |
||
:END() |
|||
-- XP per hour discarding |
|||
:IF(not item.usesExplosives) |
|||
:IF(item.xpPerHourDropping) |
|||
:tag('td') |
|||
:wikitext(item.xpPerHourDropping and lang:formatNum(tonumber(item.xpPerHourDropping))) |
|||
:done() |
|||
:ELSE() |
|||
:node(plist.unknown_value_cell(1)) |
|||
:END() |
|||
:ELSE() |
|||
:tag('td') |
|||
:addClass('table-na') |
|||
:wikitext('N/A') |
|||
:done() |
|||
:END() |
:END() |
||