Editing Module:WoodcutterList

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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
item.relocate = 5
-- 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.productPerHour = 594
item.downtime = 0
item.relocate = 2.125 -- basically just the respawn timer (45s / 8nodes - 3.5s chopping)
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.productPerHour = 335
item.downtime = 30
item.productPerHourDropping = 349
elseif string.find(item.pageName,'Pine') then
elseif string.find(item.pageName,'Pine') then
item.productPerHour = 312
item.downtime = 45
item.productPerHourDropping = 339
elseif string.find(item.pageName,'Hickory') then
elseif string.find(item.pageName,'Hickory') then
item.productPerHour = 347
item.downtime = 45
item.productPerHourDropping = 400
elseif string.find(item.pageName,'Juniper') then
elseif string.find(item.pageName,'Juniper') then
item.productPerHour = 335
item.downtime = 15
item.productPerHourDropping = 349
elseif string.find(item.pageName,'Poplar') then
elseif string.find(item.pageName,'Poplar') then
item.productPerHour = 248
item.downtime = 60
item.productPerHourDropping = 292
elseif string.find(item.pageName,'Suave') then
elseif string.find(item.pageName,'Suave') then
item.productPerHour = 317
item.downtime = 60
item.productPerHourDropping = 367
elseif string.find(item.pageName,'Yew') then
elseif string.find(item.pageName,'Yew') then
item.productPerHour = 255
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
local relocate = 5
local batch = 24
item.productPerHour = item.duration and math.floor(1 / (item.duration + relocate + banktime / batch) * 3600)
item.productPerHourDropping = item.duration and 1 / (item.duration + item.relocate) * 3600
end
end


Line 82: Line 71:
item.profit = item.sellPrice
item.profit = item.sellPrice
-- products per hour
item.batch = 24
item.productPerHour = item.duration and math.floor(1 / (item.duration + item.relocate + item.downtime / item.batch) * 3600)
item.productPerHourDropping = item.duration and 1 / (item.duration + item.relocate) * 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)
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

This page is a member of a hidden category: