Skip to content
Snippets Groups Projects
Commit 32fe4091 authored by DarkGod's avatar DarkGod
Browse files

Chant and Hymn Acolyte talents correctly show levelup diff

parent 141298d0
No related branches found
No related tags found
No related merge requests found
...@@ -289,15 +289,28 @@ newTalent{ ...@@ -289,15 +289,28 @@ newTalent{
self:unlearnTalent(self.T_CHANT_OF_RESISTANCE) self:unlearnTalent(self.T_CHANT_OF_RESISTANCE)
end, end,
info = function(self, t) info = function(self, t)
local t1 = self:getTalentFromId(self.T_CHANT_OF_FORTITUDE) local ret = ""
local t2 = self:getTalentFromId(self.T_CHANT_OF_FORTRESS) local old1 = self.talents[self.T_CHANT_OF_FORTITUDE]
local t3 = self:getTalentFromId(self.T_CHANT_OF_RESISTANCE) local old2 = self.talents[self.T_CHANT_OF_FORTRESS]
return ([[You have learned to sing the praises of the Sun, in the form of three defensive Chants. local old3 = self.talents[self.T_CHANT_OF_RESISTANCE]
Chant of Fortitute: Increases your mental save by %d and maximum life by %d%%. self.talents[self.T_CHANT_OF_FORTITUDE] = (self.talents[t.id] or 0)
Chant of Fortress: Increases your physical save by %d, your physical resistance by %d%%, your armour by %d and your armour hardiness by 10%%. self.talents[self.T_CHANT_OF_FORTRESS] = (self.talents[t.id] or 0)
Chant of Resistance: Increases you spell save by %d, your fire/cold/lightning/acid resistances by %d%% and reduces all damage that comes from distant enemies (3 spaces or more) by %d%%. self.talents[self.T_CHANT_OF_RESISTANCE] = (self.talents[t.id] or 0)
You may only have one Chant active at a time.]]): pcall(function() -- Be very paranoid, even if some addon or whatever manage to make that crash, we still restore values
format(t1.getResists(self, t1), t1.getLifePct(self, t1)*100, t2.getResists(self, t2), t2.getPhysicalResistance(self, t2), t2.getPhysicalResistance(self, t2), t3.getSpellResists(self, t3), t3.getResists(self, t3), t3.getDamageChange(self, t3)) local t1 = self:getTalentFromId(self.T_CHANT_OF_FORTITUDE)
local t2 = self:getTalentFromId(self.T_CHANT_OF_FORTRESS)
local t3 = self:getTalentFromId(self.T_CHANT_OF_RESISTANCE)
ret = ([[You have learned to sing the praises of the Sun, in the form of three defensive Chants.
Chant of Fortitute: Increases your mental save by %d and maximum life by %d%%.
Chant of Fortress: Increases your physical save by %d, your physical resistance by %d%%, your armour by %d and your armour hardiness by 10%%.
Chant of Resistance: Increases you spell save by %d, your fire/cold/lightning/acid resistances by %d%% and reduces all damage that comes from distant enemies (3 spaces or more) by %d%%.
You may only have one Chant active at a time.]]):
format(t1.getResists(self, t1), t1.getLifePct(self, t1)*100, t2.getResists(self, t2), t2.getPhysicalResistance(self, t2), t2.getPhysicalResistance(self, t2), t3.getSpellResists(self, t3), t3.getResists(self, t3), t3.getDamageChange(self, t3))
end)
self.talents[self.T_CHANT_OF_FORTITUDE] = old1
self.talents[self.T_CHANT_OF_FORTRESS] = old2
self.talents[self.T_CHANT_OF_RESISTANCE] = old3
return ret
end, end,
} }
......
...@@ -309,15 +309,28 @@ newTalent{ ...@@ -309,15 +309,28 @@ newTalent{
self:unlearnTalent(self.T_HYMN_OF_PERSEVERANCE) self:unlearnTalent(self.T_HYMN_OF_PERSEVERANCE)
end, end,
info = function(self, t) info = function(self, t)
local t1 = self:getTalentFromId(self.T_HYMN_OF_SHADOWS) local ret = ""
local t2 = self:getTalentFromId(self.T_HYMN_OF_DETECTION) local old1 = self.talents[self.T_HYMN_OF_SHADOWS]
local t3 = self:getTalentFromId(self.T_HYMN_OF_PERSEVERANCE) local old2 = self.talents[self.T_HYMN_OF_DETECTION]
return ([[You have learned to sing the praises of the Moons, in the form of three defensive Hymns. local old3 = self.talents[self.T_HYMN_OF_PERSEVERANCE]
Hymn of Shadows: Increases your movement speed by %d%%, your spell casting speed by %d%% and grants %d%% evasion. self.talents[self.T_HYMN_OF_SHADOWS] = (self.talents[t.id] or 0)
Hymn of Detection: Increases your ability to see stealthy creatures by %d and invisible creatures by %d, and increases your critical power by %d%%. self.talents[self.T_HYMN_OF_DETECTION] = (self.talents[t.id] or 0)
Hymn of Perseverance: Increases your resistance to stun, confusion and blinding by %d%%. self.talents[self.T_HYMN_OF_PERSEVERANCE] = (self.talents[t.id] or 0)
You may only have one Hymn active at a time.]]): pcall(function() -- Be very paranoid, even if some addon or whatever manage to make that crash, we still restore values
format(t1.moveSpeed(self, t1), t1.castSpeed(self, t1), t1.evade(self, t1), t2.getSeeStealth(self, t2), t2.getSeeInvisible(self, t2), t2.critPower(self, t2), t3.getImmunities(self, t3)*100) local t1 = self:getTalentFromId(self.T_HYMN_OF_SHADOWS)
local t2 = self:getTalentFromId(self.T_HYMN_OF_DETECTION)
local t3 = self:getTalentFromId(self.T_HYMN_OF_PERSEVERANCE)
ret = ([[You have learned to sing the praises of the Moons, in the form of three defensive Hymns.
Hymn of Shadows: Increases your movement speed by %d%%, your spell casting speed by %d%% and grants %d%% evasion.
Hymn of Detection: Increases your ability to see stealthy creatures by %d and invisible creatures by %d, and increases your critical power by %d%%.
Hymn of Perseverance: Increases your resistance to stun, confusion and blinding by %d%%.
You may only have one Hymn active at a time.]]):
format(t1.moveSpeed(self, t1), t1.castSpeed(self, t1), t1.evade(self, t1), t2.getSeeStealth(self, t2), t2.getSeeInvisible(self, t2), t2.critPower(self, t2), t3.getImmunities(self, t3)*100)
end)
self.talents[self.T_HYMN_OF_SHADOWS] = old1
self.talents[self.T_HYMN_OF_DETECTION] = old2
self.talents[self.T_HYMN_OF_PERSEVERANCE] = old3
return ret
end, end,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment