Module:Sandbox/Skills/Cartography: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 263: Line 263:


function p.getDiscoveryRewardsTable(frame)
function p.getDiscoveryRewardsTable(frame)
local itemNames = frame.args ~= nil and frame.args or frame
local itemNames = frame.args ~= nil and frame.args[1] or frame
local items = {}
local items = {}
for i, itemName in ipairs(itemNames) do
for i, itemName in ipairs(string.gmatch(itemNames, "([^,]+),%s*")) do
item = Items.getItem(itemName)
item = Items.getItem(itemName)
if item ~= nil then
if item ~= nil then
432

edits