Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659
edits
(Zauber armor maybe? Let's see if this works.) |
(Okay this should work now) |
||
Line 322: | Line 322: | ||
} | } | ||
for _, | for _, armourProps in ipairs ( armourPiece ) do | ||
local aliasName = 'Zauber ' .. | local aliasName = 'Zauber ' .. armourProps[1] | ||
local armourSlotText = '&9+25% Magic//&7When on ' | local armourSlotText = '&9+25% Magic//&7When on ' | ||
if | if armourProps[1] == 'Helmet' then | ||
armourSlotText = armourSlotText .. 'head' | armourSlotText = armourSlotText .. 'head' | ||
elseif | elseif armourProps[1] == 'Chestplate' then | ||
armourSlotText = armourSlotText .. 'body' | armourSlotText = armourSlotText .. 'body' | ||
elseif | elseif armourProps[1] == 'Leggings' then | ||
armourSlotText = armourSlotText .. 'legs' | armourSlotText = armourSlotText .. 'legs' | ||
else | else | ||
Line 341: | Line 341: | ||
-- If Armour Toughness (diamond armour) | -- If Armour Toughness (diamond armour) | ||
aliases[aliasName] = { title = '&b' .. 'Zauber ' .. | aliases[aliasName] = { title = '&b' .. 'Zauber ' .. armourProps[1], name = aliasName, text = armourSlotText .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' } | ||
for _, | for _, buff in ipairs( armourBuff ) do | ||
if | if buff == 'Health' then | ||
armourSlotText = armourSlotText .. '+4 Max Health/' | armourSlotText = armourSlotText .. '+4 Max Health/' | ||
elseif | elseif buff == 'Knockback' then | ||
armourSlotText = armourSlotText .. '+0.25 Knockback Resistance/' | armourSlotText = armourSlotText .. '+0.25 Knockback Resistance/' | ||
elseif | elseif buff == 'Speed' then | ||
armourSlotText = armourSlotText .. '+10% Speed/' | armourSlotText = armourSlotText .. '+10% Speed/' | ||
else | else | ||
Line 356: | Line 356: | ||
-- If Armour Toughness (diamond armour) | -- If Armour Toughness (diamond armour) | ||
aliases[aliasName] = { title = '&b' .. 'Zauber ' .. | aliases[aliasName] = { title = '&b' .. 'Zauber ' .. armourProps[1], name = aliasName, text = armourSlotText .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' } | ||
end | end | ||
end | end |
edits