Module:WoodcutterList: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(add column for xp if logs are dropped) |
(made separate downtime for each type of tree) |
||
Line 41: | Line 41: | ||
item.hideCells = string.find(item.pageName,'Brambles') |
item.hideCells = string.find(item.pageName,'Brambles') |
||
-- downtime is very important for gathering-type professions |
|||
-- initial guesses |
|||
⚫ | |||
item.relocate = 5 |
|||
-- these numbers are based roughly on how far the trees are from a storage rift or bank |
|||
⚫ | |||
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 |
|||
⚫ | |||
-- profitability |
-- profitability |
||
item.profit = item.sellPrice |
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.batch = 24 |
||
⚫ | |||
⚫ | |||
⚫ | |||
item.productPerHourDropping = item.duration and 1 / (item.duration + item.relocate) * 3600 |
item.productPerHourDropping = item.duration and 1 / (item.duration + item.relocate) * 3600 |
||
Line 55: | Line 79: | ||
item.xpPerHourDropping = item.xp and item.productPerHourDropping and math.floor(item.xp * item.productPerHourDropping) |
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) |
item.profitPerHour = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour) |
||
-- brambles dont need to bank anyway |
|||
⚫ | |||
item.xpPerHour = item.xpPerHourDropping |
|||
⚫ | |||
end |
end |
||
Line 106: | Line 125: | ||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
:wikitext('XP/hr<br>( |
:wikitext('XP/hr<br>(Discarding)') |
||
:done() |
:done() |
||
:done() |
:done() |