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 3: | Line 3: | ||
local lang = mw.getContentLanguage() |
local lang = mw.getContentLanguage() |
||
local plist = require('Module:ProfessionList') |
local plist = require('Module:ProfessionList') |
||
local rts = require('Module:RecipeTreeSearch') |
|||
local p = {} |
local p = {} |
||
Line 41: | Line 42: | ||
-- downtime is very important for gathering-type professions |
-- downtime is very important for gathering-type professions |
||
-- initial guesses |
|||
-- These numbers are from the strategy guides for each tree |
|||
item.downtime = 60 |
|||
⚫ | |||
-- these numbers are based roughly on how far the trees are from a storage rift or bank |
|||
if item.hideCells then |
if item.hideCells then |
||
item. |
item.downtime = 0 |
||
item.relocate = 2.125 -- basically just the respawn timer |
|||
item.productPerHourDropping = 594 |
|||
elseif string.find(item.pageName,'Ash') then |
elseif string.find(item.pageName,'Ash') then |
||
item. |
item.downtime = 30 |
||
item.productPerHourDropping = 360 |
|||
elseif string.find(item.pageName,'Oak') then |
elseif string.find(item.pageName,'Oak') then |
||
item. |
item.downtime = 30 |
||
item.productPerHourDropping = 349 |
|||
elseif string.find(item.pageName,'Pine') then |
elseif string.find(item.pageName,'Pine') then |
||
item. |
item.downtime = 45 |
||
item.productPerHourDropping = 339 |
|||
elseif string.find(item.pageName,'Hickory') then |
elseif string.find(item.pageName,'Hickory') then |
||
item. |
item.downtime = 45 |
||
item.productPerHourDropping = 400 |
|||
elseif string.find(item.pageName,'Juniper') then |
elseif string.find(item.pageName,'Juniper') then |
||
item. |
item.downtime = 15 |
||
item.productPerHourDropping = 349 |
|||
elseif string.find(item.pageName,'Poplar') then |
elseif string.find(item.pageName,'Poplar') then |
||
item. |
item.downtime = 60 |
||
item.productPerHourDropping = 292 |
|||
elseif string.find(item.pageName,'Suave') then |
elseif string.find(item.pageName,'Suave') then |
||
item. |
item.downtime = 60 |
||
item.productPerHourDropping = 367 |
|||
elseif string.find(item.pageName,'Yew') then |
elseif string.find(item.pageName,'Yew') then |
||
item. |
item.downtime = 45 |
||
item.productPerHourDropping = 271 |
|||
else |
|||
-- catch all case based on chop time and bad assumptions |
|||
-- ideally this should never be used |
|||
local banktime = 120 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||
Line 82: | Line 70: | ||
item.profit = item.sellPrice |
item.profit = item.sellPrice |
||
-- products per hour |
|||
⚫ | |||
⚫ | |||
⚫ | |||
-- 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 109: | Line 102: | ||
: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 155: | Line 144: | ||
-- 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 |