Anonymous

Module:Sandbox/Skills/Cartography: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 265: Line 265:
local itemNames = frame.args ~= nil and frame.args[1] or frame
local itemNames = frame.args ~= nil and frame.args[1] or frame
local items = {}
local items = {}
for i, itemName in ipairs(string.gmatch(itemNames, "([^,]+),%s*")) do
for itemName in string.gmatch(itemNames, "([^,]+),%s*") do
item = Items.getItem(itemName)
item = Items.getItem(itemName)
if item ~= nil then
if item ~= nil then
items[i] = item
items.insert(item)
end
end
end
end
432

edits