Module:CarpenterList: Difference between revisions

277 bytes removed ,  7 December 2024
remove the Pole special case for display XP, and instead make pole recipes themselves work properly
(switch from using Infobox Recipe function _getTrueRawMaterials to a purpose built module RecipeTreeSearch designed for combining multi-stage recipes)
(remove the Pole special case for display XP, and instead make pole recipes themselves work properly)
Line 61:
item.XP = fullRecipe.xp
item.duration = fullRecipe.duration
-- SPECIFIC TO CARPENTER, where poles are made in batches of 2
-- caused by a problem that the recipes specift 2 inputs 2 outputs but only have the xp for 1:1
if string.find(item.name,'Pole') then
item.XP = item.XP and item.finalXP and item.XP + item.finalXP
end
-- direct values
21,769

edits