Module:Gm4Sprite/Aliases: Difference between revisions

Fixed Orb of Ankou's Soul Shards lore
m (Have to save original values too)
(Fixed Orb of Ankou's Soul Shards lore)
Line 275: Line 275:
-- Soul Shards
-- Soul Shards
local pneumas = {
local pneumas = {
'Aggressive Soul Shard',
{'Aggressive', '&9Aggressive' },
'Agile Soul Shard',
{'Agile', '&9Agile' },
'Anchoring Soul Shard',
{'Anchoring', '&9Anchoring' },
'Bargaining Soul Shard',
{'Bargaining', '&9Bargaining' },
'Bashing Soul Shard',
{'Bashing', '&9Bashing' },
'Blasting Soul Shard',
{'Blasting', '&9Blasting' },
'Blinding Soul Shard',
{'Blinding', '&9Blinding' },
'Bounding Soul Shard',
{'Bounding', '&9Bounding' },
'Bubbly Soul Shard',
{'Bubbly', '&9Bubbly' },
'Conjuring Soul Shard',
{'Conjuring', '&9Conjuring' },
'Depriving Soul Shard',
{'Depriving', '&9Depriving' },
'Draining Soul Shard',
{'Draining', '&9Draining' },
'Enduring Soul Shard',
{'Enduring', '&9Enduring' },
'Expeditious Soul Shard',
{'Expeditious', '&9Expeditious' },
'Feathery Soul Shard',
{'Feathery', '&9Feathery' },
'Freezing Soul Shard',
{'Freezing', '&9Freezing' },
'Gazing Soul Shard',
{'Gazing', '&9Gazing' },
'Gliding Soul Shard',
{'Gliding', '&9Gliding' },
'Hawkeye Soul Shard',
{'Hawkeye', '&9Hawkeye' },
'Incombustible Soul Shard',
{'Incombustible', '&9Incombustible' },
'Lifeless Soul Shard',
{'Lifeless', '&9Lifeless' },
'Neutralizing Soul Shard',
{'Neutralizing', '&9Neutralizing' },
'Phasing Soul Shard',
{'Phasing', '&9Phasing' },
'Pricking Soul Shard',
{'Pricking', '&7Thorns V&9Pricking' },
'Retreating Soul Shard',
{'Retreating', '&9Retreating' },
'Rushing Soul Shard',
{'Rushing', '&9Rushing' },
'Scaling Soul Shard',
{'Scaling', '&9Scaling' },
'Soaring Soul Shard',
{'Soaring', '&9Soaring' },
'Striding Soul Shard',
{'Striding', '&9Striding' },
'Synergetic Soul Shard',
{'Synergetic', '&9Synergetic' },
'Vanishing Soul Shard',
{'Vanishing', '&9Vanishing' },
'Venomous Soul Shard',
{'Venomous', '&9Venomous' },
'Volatile Soul Shard',
{'Volatile', '&9Volatile' },
'Withering Soul Shard'
{'Withering', '&9Withering' }
}
}


-- Add "When in off hand:"
local preAttackDamageText = {
for _, shard in ipairs( pneumas ) do
{'Enduring', '/&9+8 Max Health/&c-20%speed' },
aliases[shard] = { title = title, name = name, text = text .. '//&7When in off hand:' }
{'Soaring', '/&c-20% Max Health' },
end
{'Bashing', '/&c-40% Attack Speed' }
}


-- Add "+8 Max Health"
local postAttackDamageText = {
aliases['Enduring Soul Shard'] = { title = title, name = name, text = text .. '/&9+8 Max Health' }
{'Anchoring', '&9+0.9 Knockback Resistance' },
{'Bashing', '&9+70% Attack Damage' }
}


-- Add "-20% Max Health"
aliases['Soaring Soul Shard'] = { title = title, name = name, text = text .. '/&c-20% Max Health' }


-- Add "-40% Attack Speed"
-- Create Soul Shards
aliases['Bashing Soul Shard'] = { title = title, name = name, text = text .. '/&c-40% Attack Speed' }
for _, shard in ipairs( pneumas ) do
local name = shard[1] .. ' Soul Shard'
local combinedText = shard[2] .. '//&7When in off hand:/'


-- Add "-20% Speed"
for _, text in ipairs( preAttackDamageText ) do
aliases['Enduring Soul Shard'] = { title = title, name = name, text = text .. '/&c-20% Speed' }
if shard[1] == preAttackDamageText[1] then
combinedText = combinedText .. preAttackDamageText[2]
end
end


-- Add "-20% Attack Damage"
combinedText = combinedText .. '/&c-20% Attack Damage'
for _, shard in ipairs( pneumas ) do
aliases[shard] = { title = title, name = name, text = text .. '/&c-20% Attack Damage' }
end


-- Add "+0.9 Knockback Resistance
for _, text in ipairs( postAttackDamageText ) do
aliases['Anchoring Soul Shard'] = { title = title, name = name, text = text .. '/&9+0.9 Knockback Resistance' }
if shard[1] == postAttackDamageText[1] then
combinedText = combinedText .. postAttackDamageText[2]
end
end


-- Add "+70% Attack Damage"
aliases[name] = { title = 'Soul Shard', name = name, text = combinedText }
aliases['Bashing Soul Shard'] = { title = title, name = name, text = text .. '/&9+70% Attack Damage' }
end




return aliases
return aliases
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,637

edits