Editing Module:WoodcutterList
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.hideCells = string.find(item.pageName,'Brambles') |
item.hideCells = string.find(item.pageName,'Brambles') |
||
-- downtime is very important for gathering-type professions |
|||
-- initial guesses |
|||
⚫ | |||
item.relocate = 5 |
|||
-- these numbers are based roughly on how far the trees are from a storage rift or bank |
|||
if item.hideCells then |
|||
item.downtime = 0 |
|||
item.relocate = 2.5606 -- from the Strategy guide on the Brambles page, 594 chope per hour |
|||
elseif string.find(item.pageName,'Ash') then |
|||
item.downtime = 35 -- from the Strategy guide on the Ash Tree page, 35s to lumber bank |
|||
item.relocate = 6.5 -- from the Strategy guide on the Ash Tree page, 360 log per hour |
|||
elseif string.find(item.pageName,'Oak') then |
|||
item.downtime = 30 |
|||
elseif string.find(item.pageName,'Pine') then |
|||
item.downtime = 45 |
|||
elseif string.find(item.pageName,'Hickory') then |
|||
item.downtime = 45 |
|||
elseif string.find(item.pageName,'Juniper') then |
|||
item.downtime = 15 |
|||
elseif string.find(item.pageName,'Poplar') then |
|||
item.downtime = 60 |
|||
elseif string.find(item.pageName,'Suave') then |
|||
item.downtime = 60 |
|||
elseif string.find(item.pageName,'Yew') then |
|||
item.downtime = 45 |
|||
end |
|||
-- profitability |
-- profitability |
||
item.profit = item.sellPrice |
item.profit = item.sellPrice |
||
-- DOWNTIME VERY IMPORTANT FOR GATHERING TYPE PROFESSIONS |
|||
-- products per hour |
|||
item.downtime = 60 -- THIS IS AN INITIAL GUESS, DO NOT USE THIS VALUE |
|||
item.batch = 24 |
item.batch = 24 |
||
⚫ | |||
item.productPerHour = item.duration and math.floor(1 / (item.duration + item.relocate + item.downtime / item.batch) * 3600) |
|||
item. |
item.productPerHour = item.duration and 1 / (item.duration + item.relocate + item.downtime / item.batch) * 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 103: | Line 75: | ||
:attr{ colspan = '2' } |
:attr{ colspan = '2' } |
||
:wikitext('Tree') |
:wikitext('Tree') |
||
:done() |
|||
:tag('th') |
|||
:attr{ colspan = '2' } |
|||
:wikitext('Tool') |
|||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
Line 128: | Line 96: | ||
:tag('th') |
:tag('th') |
||
:wikitext('XP/hr') |
:wikitext('XP/hr') |
||
:done() |
|||
:tag('th') |
|||
:wikitext('XP/hr<br>(Discarding)') |
|||
:done() |
:done() |
||
:done() |
:done() |
||
Line 149: | Line 114: | ||
-- gathering node |
-- gathering node |
||
:node(plist.two_column_image_text(item.pageName,item.pageImage,item.pageName,item.pageName)) |
:node(plist.two_column_image_text(item.pageName,item.pageImage,item.pageName,item.pageName)) |
||
:node(plist.two_column_image_text(item.tool,'File:'..item.tool..' (grade 1).png',item.tool,item.tool)) |
|||
-- resource |
-- resource |
||
Line 196: | Line 160: | ||
:ELSE() |
:ELSE() |
||
:node(plist.unknown_value_cell(1)) |
:node(plist.unknown_value_cell(1)) |
||
:END() |
|||
-- XP per hour |
|||
:IF(item.hideCells) |
|||
:tag('td') |
|||
:addClass('table-na') |
|||
:wikitext('N/A') |
|||
:done() |
|||
:ELSE() |
|||
:IF(item.xpPerHourDropping) |
|||
:tag('td') |
|||
:wikitext(item.xpPerHourDropping and lang:formatNum(tonumber(item.xpPerHourDropping))) |
|||
:done() |
|||
:ELSE() |
|||
:node(plist.unknown_value_cell(1)) |
|||
:END() |
|||
:END() |
:END() |
||