Module:Inventory slot/Aliases/Table: Difference between revisions

No edit summary
Well it's not that slow, but the table is still ridiculously large. Doesn't seem worth having.
Line 6: Line 6:
local keys = {}
local keys = {}
for i in pairs( aliases ) do
for i in pairs( aliases ) do
table.insert( keys, i )
-- Skip the banner aliases (except "Any Banner"), as there are so
-- many of them it causes the table to be excessively long
if i == 'Any Banner' or not i:find( ' Banner$' ) then
table.insert( keys, i )
end
end
end
table.sort( keys )
table.sort( keys )