Module:Gm4Sprite/Aliases: Difference between revisions

m
I found the problems.
(Okay this should work now)
m (I found the problems.)
Line 340: Line 340:
armourSlotText = armourSlotText .. ':/&9'
armourSlotText = armourSlotText .. ':/&9'


-- If Armour Toughness (diamond armour)
-- Plain Zauber Armour
aliases[aliasName] = { title = '&b' .. 'Zauber ' .. armourProps[1], name = aliasName, text = armourSlotText .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' }
aliases[aliasName] = { title = '&b' .. 'Zauber ' .. armourProps[1], name = aliasName, text = armourSlotText .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' }
-- Zauber Armour with specific buff
for _, buff in ipairs( armourBuff ) do
for _, buff in ipairs( armourBuff ) do


if buff == 'Health' then
if buff == 'Health' then
armourSlotText = armourSlotText .. '+4 Max Health/'
armourSlotTextBuffed = armourSlotText .. '+4 Max Health/'
elseif buff == 'Knockback' then
elseif buff == 'Knockback' then
armourSlotText = armourSlotText .. '+0.25 Knockback Resistance/'
armourSlotTextBuffed = armourSlotText .. '+0.25 Knockback Resistance/'
elseif buff == 'Speed' then
elseif buff == 'Speed' then
armourSlotText = armourSlotText .. '+10% Speed/'
armourSlotTextBuffed = armourSlotText .. '+10% Speed/'
else
else
armourSlotText = armourSlotText .. '+35% Attack Damage/'
armourSlotTextBuffed = armourSlotText .. '+35% Attack Damage/'
end
end


-- If Armour Toughness (diamond armour)
aliasNameBuffed = aliasName .. ' (' .. buff .. ')'
aliases[aliasName] = { title = '&b' .. 'Zauber ' .. armourProps[1], name = aliasName, text = armourSlotText .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' }
aliases[aliasNameBuffed] = { title = '&b' .. 'Zauber ' .. armourProps[1], name = aliasName, text = armourSlotTextBuffed .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' }
end
end
end
end
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits