Module:Inventory slot/Aliases: Difference between revisions

mNo edit summary
mNo edit summary
Line 358: Line 358:
for _, statusProps in ipairs( status ) do
for _, statusProps in ipairs( status ) do
if statusProps[3] ~= '' then
if statusProps[3] ~= '' then
local aliasName = 'Potion of ' .. statusProps[1]
aliases['Potion of ' .. statusProps[1]] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' (' .. statusProps[3] .. ')'}
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' (' .. statusProps[3] .. ')'}
aliases['Potion of ' .. statusProps[1] .. ' Extended'] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' (' .. statusProps[3] .. ')'}
else
else
local aliasName = 'Potion of ' .. statusProps[1]
local aliasName = 'Potion of ' .. statusProps[1]