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.5606 -- from the Strategy guide on the Brambles page, 594 chope per hour |
|||
item.productPerHourDropping = 594 |
|||
elseif string.find(item.pageName,'Ash') then |
elseif string.find(item.pageName,'Ash') then |
||
item.downtime = 35 -- from the Strategy guide on the Ash Tree page, 35s to lumber bank |
|||
item.productPerHour = 314 |
|||
item.relocate = 6.5 -- from the Strategy guide on the Ash Tree page, 360 log per hour |
|||
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 71: | ||
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) |