Module:CarpenterList: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(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: Line 61:
item.XP = fullRecipe.xp
item.XP = fullRecipe.xp
item.duration = fullRecipe.duration
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
-- direct values