Module:Inventory slot/Aliases: Difference between revisions
Make potion code readable and have it fill the any/matching aliases, move another set of BE names to the new loop |
mNo edit summary |
||
| Line 507: | Line 507: | ||
-- ensure we have extended | -- ensure we have extended | ||
if durations[2] then | if durations[2] then | ||
aliases[name .. ' Extended'] = { name = name, string.format( '%s (%s)', effect.effect, durations[2] ) } | aliases[name .. ' Extended'] = { name = name, text = string.format( '%s (%s)', effect.effect, durations[2] ) } | ||
-- and enhanced, currently there is nothing with a duration that can be extended but not enhanced | -- and enhanced, currently there is nothing with a duration that can be extended but not enhanced | ||
if effect.enhanced then | if effect.enhanced then | ||
aliases[name .. ' Enhanced'] = { name = name, string.format( '%s %s (%s)', effect.effect, effect.enhanced, durations[3] ) } | aliases[name .. ' Enhanced'] = { name = name, text = string.format( '%s %s (%s)', effect.effect, effect.enhanced, durations[3] ) } | ||
end | end | ||
end | end | ||