Module:Inventory slot/Aliases: Difference between revisions

Display names did not fix icons; the other changes were effective, though
mNo edit summary
Line 327: Line 327:
-- Potions --
-- Potions --
local status = {
local status = {
{'Regeneration', '&9Regeneration', '0:45', '1:30', '0:22' },
{'Regeneration', '&9Regeneration', '0:45', '1:30', '0:22', 'II' },
{'Swiftness', '&9Speed', '3:00', '8:00', '1:30' },
{'Swiftness', '&9Speed', '3:00', '8:00', '1:30', 'II' },
{'Fire Resistance', '&9Fire Resistance', '3:00', '8:00', '' },
{'Fire Resistance', '&9Fire Resistance', '3:00', '8:00', '', '' },
{'Poison', '&cPoison', '0:45', '1:30', '0:21' },
{'Poison', '&cPoison', '0:45', '1:30', '0:21', 'II' },
{'Healing', '&9Instant Health', '', '', '' },
{'Healing', '&9Instant Health', '', '', '', 'II' },
{'Night Vision', '&9Night Vision', '3:00', '8:00', '' },
{'Night Vision', '&9Night Vision', '3:00', '8:00', '', '' },
{'Weakness', '&cWeakness', '1:30', '4:00', '' },
{'Weakness', '&cWeakness', '1:30', '4:00', '', 'II' },
{'Strength', '&9Strength', '3:00', '8:00', '1:30' },
{'Strength', '&9Strength', '3:00', '8:00', '1:30', 'II' },
{'Slowness', '&cSlowness', '1:30', '4:00', '' },
{'Slowness', '&cSlowness', '1:30', '4:00', '', 'V' },
{'Leaping', '&9Jump Boost', '3:00', '8:00', '1:30' },
{'Leaping', '&9Jump Boost', '3:00', '8:00', '1:30', 'II' },
{'Harming', '&cInstant Damage', '', '', '' },
{'Harming', '&cInstant Damage', '', '', '', 'II' },
{'Water Breathing', '&9Water Breathing', '3:00', '8:00', '' },
{'Water Breathing', '&9Water Breathing', '3:00', '8:00', '', '' },
{'Invisibility', '&9Invisibility', '3:00', '8:00', '1:30' },
{'Invisibility', '&9Invisibility', '3:00', '8:00', '1:30' },
{'Slow Falling', '&9Slow Falling', '1:30', '4:00', '' },
{'Slow Falling', '&9Slow Falling', '1:30', '4:00', '', '' },
{'Luck', '&9Luck', '5:00', '', '' },
{'Luck', '&9Luck', '5:00', '', '', '' },
{'Decay', '&cDecay', '0:40', '', '' },
{'Decay', '&cDecay', '0:40', '', '', '' },
   --{'potionName', 'potionStatus', 'duration', 'durationExtended', 'durationEnhanced' },
   --{'potionName', 'potionStatus', 'duration', 'durationExtended', 'durationEnhanced' },
}
}
Line 353: Line 353:
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' (' .. statusProps[4] .. ')'}
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' (' .. statusProps[4] .. ')'}
local aliasName = 'Potion of ' .. statusProps[1] .. ' Enhanced'
local aliasName = 'Potion of ' .. statusProps[1] .. ' Enhanced'
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' II (' .. statusProps[5] .. ')'}
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' ' .. statusProps[6] .. ' (' .. statusProps[5] .. ')'}
else
else
local aliasName = 'Potion of ' .. statusProps[1]
local aliasName = 'Potion of ' .. statusProps[1]
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] }
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] }
local aliasName = 'Potion of ' .. statusProps[1] .. ' Enhanced'
aliases[aliasName] = { title = aliasName, name = aliasName, text = statusProps[2] .. ' ' .. statusProps[6] }
end
end
end
end