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

No edit summary
But I think we can allow "Any Banner".
Line 5: Line 5:
local keys = {}
local keys = {}
for i, v in pairs( aliases ) do
for i in pairs( aliases ) do
-- Skip the banner aliases, as there are so many of them it causes the
-- Skip the banner aliases (except "Any Banner"), as there are so many of them it
-- page to be too slow. Maybe once we use sprites it will be fast enough.
-- causes the page to be too slow. Maybe once we use sprites it will be fast enough.
if not i:find( 'Banner$' ) then
if i == 'Any Banner' or not i:find( 'Banner$' ) then
table.insert( keys, i )
table.insert( keys, i )
end
end