Module:Infobox Recipe: Difference between revisions

m
different variable names for Full Recipe XP and passive's per-hour recipe XP
(when a recipe is set to passive, display the -per-hour p and materials in brackets)
m (different variable names for Full Recipe XP and passive's per-hour recipe XP)
 
Line 109:
 
-- display XP and duration totals for multi-step process
args.displayXPfullXP = tonumber(args.exp) and searchResult.xp and searchResult.xp + tonumber(args.exp)
args.displayDuration = tonumber(args.duration) and searchResult.duration and searchResult.duration + tonumber(args.duration)
Line 115:
rawMaterials = argsMaterials
end
--If it is a passive recipe, will want to display the per-hour values for XP and materials used
Line 243 ⟶ 242:
:IF(showFullRecipe)
:wikitext(' (')
:wikitext(hc(args.displayXPfullXP) and (formatNum(tonumber(args.displayXPfullXP))) or ("'''?'''"))
:wikitext(' total)')
:END()
18,805

edits