Module:Inventory slot/Aliases: Difference between revisions
m added any potion and any splash potion. Also easily expandable should we want other types |
mNo edit summary |
||
| Line 187: | Line 187: | ||
aliases['Any Firework Star'] = table.concat( aliases['Any Firework Star'], ';' ) | aliases['Any Firework Star'] = table.concat( aliases['Any Firework Star'], ';' ) | ||
-- Potions -- | |||
local effects = { | local effects = { | ||
"Regeneration", | "Regeneration", | ||
| Line 225: | Line 226: | ||
table.insert( aliases['Any Lingering'], 'Lingering Potion of ' .. effect ) | table.insert( aliases['Any Lingering'], 'Lingering Potion of ' .. effect ) | ||
end | end | ||
aliases['Any Potion'] = table.concat( aliases['Potion'], ';' ) | aliases['Any Potion'] = table.concat( aliases['Any Potion'], ';' ) | ||
aliases['Any Splash Potion'] = table.concat( aliases['Potion'], ';' ) | aliases['Any Splash Potion'] = table.concat( aliases['Any Splash Potion'], ';' ) | ||
aliases['Any Lingering Potion'] = table.concat( aliases['Potion'], ';' ) | aliases['Any Lingering Potion'] = table.concat( aliases['Any Lingering Potion'], ';' ) | ||
return aliases | return aliases | ||