Module:CarpenterList: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(remove the Pole special case for display XP, and instead make pole recipes themselves work properly) |
(double up for poles, so each line is per log) |
||
Line 61: | Line 61: | ||
item.XP = fullRecipe.xp |
item.XP = fullRecipe.xp |
||
item.duration = fullRecipe.duration |
item.duration = fullRecipe.duration |
||
-- poles will show as making 1 and using 0.5 log, which doesnt match the look of planks or staves |
|||
-- double them, |
|||
if item.name and string.find(item.name,'Pole') then |
|||
item.outputQuantity = item.outputQuantity and item.outputQuantity * 2 |
|||
item.buy = item.buy and item.buy * 2 |
|||
item.XP = item.XP and item.XP * 2 |
|||
item.duration = item.duration and item.duration * 2 |
|||
for j,jtem in ipairs(item.materials) do |
|||
jtem.quantity = jtem.quantity * 2 |
|||
end |
|||
end |
|||
-- direct values |
-- direct values |
||
Line 68: | Line 81: | ||
-- 40 seconds to buy new supplies and travel and deposit and everything, per 12 products |
-- 40 seconds to buy new supplies and travel and deposit and everything, per 12 products |
||
-- (without doubling up for poles, was assuming 6 logs to 12 poles per bach) |
|||
local batchSize = 12 |
local batchSize = 12 |
||
local downtime = 60 |
local downtime = 60 |