Module:ProfessionList: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (one_column_image_text has no sort parameter) |
(force nil values for xp, kp, and duration, if any subrecipes does not have thoe parameters) |
||
Line 148: | Line 148: | ||
local fullRecipe = search.main(item.product) |
local fullRecipe = search.main(item.product) |
||
-- overwrite any parameters from the original recipe with their counterparts from the full recipe |
-- overwrite any parameters from the original recipe with their counterparts from the full recipe |
||
-- |
-- parameters which dont exist in the fullRecipe wont be overwritten, |
||
-- first need to nil the xp, kp, and duration, since if they are nil in the fullRecipe they must stay nil |
|||
item.xp = nil |
|||
item.kp = nil |
|||
item.duration = nil |
|||
for key,value in pairs(fullRecipe) do |
for key,value in pairs(fullRecipe) do |
||
item[key] = value |
item[key] = value |