Module:ModifierTables: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (Added a 'getUpgradeTable' function that generates a table of all things that include a given modifier) |
Falterfire (talk | contribs) (Swapped the skill argument to be a named argument) |
||
Line 233: | Line 233: | ||
function p.getModifierTable(frame) | function p.getModifierTable(frame) | ||
local modifier = frame.args ~= nil and frame.args[1] or frame[1] | local modifier = frame.args ~= nil and frame.args[1] or frame[1] | ||
local skill = frame.args ~= nil and frame.args | local skill = frame.args ~= nil and frame.args.skill or frame.skill | ||
local columnName = frame.args ~= nil and frame.args[3] or frame[3] | local columnName = frame.args ~= nil and frame.args[3] or frame[3] | ||
local getOpposites = frame.args ~= nil and frame.args[4] or frame[4] | local getOpposites = frame.args ~= nil and frame.args[4] or frame[4] |