Module:CarpenterList: Difference between revisions

double up for poles, so each line is per log
(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:
item.XP = fullRecipe.xp
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
Line 68 ⟶ 81:
 
-- 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 downtime = 60
21,771

edits