Module:WoodcutterList: Difference between revisions

made separate downtime for each type of tree
(add column for xp if logs are dropped)
(made separate downtime for each type of tree)
Line 41:
item.hideCells = string.find(item.pageName,'Brambles')
-- downtime is very important for gathering-type professions
-- initial guesses
item.relocatedowntime = 560
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.125 -- basically just the respawn timer
elseif string.find(item.pageName,'Ash') then
item.downtime = 30
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
item.profit = item.sellPrice
-- products per hour
-- DOWNTIME VERY IMPORTANT FOR GATHERING TYPE PROFESSIONS
item.downtime = 60 -- THIS IS AN INITIAL GUESS, DO NOT USE THIS VALUE
item.batch = 24
item.productPerHour = item.duration and math.floor(1 / (item.duration + item.relocate + item.downtime / item.batch) * 3600)
item.relocate = 5
item.productPerHour = item.duration and 1 / (item.duration + item.relocate + item.downtime / item.batch) * 3600
item.productPerHourDropping = item.duration and 1 / (item.duration + item.relocate) * 3600
 
Line 55 ⟶ 79:
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)
-- brambles dont need to bank anyway
if item.hideCells then
item.xpPerHour = item.xpPerHourDropping
end
end
Line 106 ⟶ 125:
:done()
:tag('th')
:wikitext('XP/hr<br>(Dropping logsDiscarding)')
:done()
:done()
13,120

edits