Module:WoodcutterList: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (brambles chops per hour)
(Use the Tree Guide values for chops per hour, more accurate than before)
Line 42: Line 42:
-- downtime is very important for gathering-type professions
-- downtime is very important for gathering-type professions
-- These numbers are from the strategy guides for each tree
-- initial guesses
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.downtime = 0
item.productPerHour = 594
item.productPerHourDropping = 594
item.relocate = 2.5606 -- from the Strategy guide on the Brambles page, 594 chope per hour
elseif string.find(item.pageName,'Ash') then
elseif string.find(item.pageName,'Ash') then
item.productPerHour = 314
item.downtime = 35 -- from the Strategy guide on the Ash Tree page, 35s to lumber bank
item.productPerHourDropping = 360
item.relocate = 6.5 -- from the Strategy guide on the Ash Tree page, 360 log per hour
elseif string.find(item.pageName,'Oak') then
elseif string.find(item.pageName,'Oak') then
item.downtime = 30
item.productPerHour = 335
item.productPerHourDropping = 349
elseif string.find(item.pageName,'Pine') then
elseif string.find(item.pageName,'Pine') then
item.downtime = 45
item.productPerHour = 312
item.productPerHourDropping = 339
elseif string.find(item.pageName,'Hickory') then
elseif string.find(item.pageName,'Hickory') then
item.downtime = 45
item.productPerHour = 347
item.productPerHourDropping = 400
elseif string.find(item.pageName,'Juniper') then
elseif string.find(item.pageName,'Juniper') then
item.downtime = 15
item.productPerHour = 335
item.productPerHourDropping = 349
elseif string.find(item.pageName,'Poplar') then
elseif string.find(item.pageName,'Poplar') then
item.downtime = 60
item.productPerHour = 248
item.productPerHourDropping = 292
elseif string.find(item.pageName,'Suave') then
elseif string.find(item.pageName,'Suave') then
item.downtime = 60
item.productPerHour = 317
item.productPerHourDropping = 367
elseif string.find(item.pageName,'Yew') then
elseif string.find(item.pageName,'Yew') then
item.downtime = 45
item.productPerHour = 240
item.productPerHourDropping = 277
else
-- catch all case based on chop time and bad assumptions
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 71: Line 82:
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)