Skip to content
Snippets Groups Projects
Commit d02a283c authored by dg's avatar dg
Browse files

Bathe in Light now also lites up the affected area

Chant of Light increases lite radius


git-svn-id: http://svn.net-core.org/repos/t-engine4@2798 51575b47-30f0-44d4-a5cc-537603b46e54
parent 30c56dce
No related branches found
No related tags found
No related merge requests found
......@@ -172,12 +172,14 @@ newTalent{
range = 10,
getLightDamageIncrease = function(self, t) return self:combatTalentSpellDamage(t, 10, 50) end,
getDamageOnMeleeHit = function(self, t) return self:combatTalentSpellDamage(t, 5, 25) end,
getLite = function(self, t) return 1 + math.floor(self:getTalentLevelRaw(t)) end,
activate = function(self, t)
cancelChants(self)
game:playSoundNear(self, "talents/spell_generic2")
local ret = {
onhit = self:addTemporaryValue("on_melee_hit", {[DamageType.LIGHT]=t.getDamageOnMeleeHit(self, t)}),
phys = self:addTemporaryValue("inc_damage", {[DamageType.LIGHT] = t.getLightDamageIncrease(self, t)}),
lite = self:addTemporaryValue("lite", t.getLite(self, t)),
particle = self:addParticles(Particles.new("golden_shield", 1))
}
return ret
......@@ -186,15 +188,18 @@ newTalent{
self:removeParticles(p.particle)
self:removeTemporaryValue("on_melee_hit", p.onhit)
self:removeTemporaryValue("inc_damage", p.phys)
self:removeTemporaryValue("lite", p.lite)
return true
end,
info = function(self, t)
local damageinc = t.getLightDamageIncrease(self, t)
local damage = t.getDamageOnMeleeHit(self, t)
local lite = t.getLite(self, t)
return ([[Chant the glory of the sun, granting you %d%% more light damage.
In addition it surrounds you with a shield of light, damaging anything that attacks you for %0.2f light damage.
Your lite radius is also increased by %d.
You may only have one Chant active at once.
The effects will increase with the Magic stat]]):
format(damageinc, damDesc(self, DamageType.LIGHT, damage))
format(damageinc, damDesc(self, DamageType.LIGHT, damage), lite)
end,
}
......@@ -53,6 +53,7 @@ newTalent{
getDuration = function(self, t) return self:getTalentLevel(t) + 2 end,
action = function(self, t)
local tg = {type="ball", range=self:getTalentRange(t), radius=3}
self:project(tg, self.x, self.y, DamageType.LITE, 1)
-- Add a lasting map effect
game.level.map:addEffect(self,
self.x, self.y, t.getDuration(self, t),
......@@ -69,6 +70,7 @@ newTalent{
local heal = t.getHeal(self, t)
local duration = t.getDuration(self, t)
return ([[A magical zone of Sunlight appears around you, healing all within a radius of 3 for %0.2f per turn and increasing healing effects on those within by %d%%. The effect lasts %d turns.
It will also light up the affected zone.
The life healed will increase with the Magic stat]]):
format(heal, heal, duration)
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