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

Heat Beam rune now also removes a random physical effect

Frozen Spear rune now also removes a random mental effect


git-svn-id: http://svn.net-core.org/repos/t-engine4@6409 51575b47-30f0-44d4-a5cc-537603b46e54
parent 78470c01
No related branches found
No related tags found
No related merge requests found
......@@ -4182,7 +4182,7 @@ function _M:removeEffectsFilter(t, nb, silent, force)
local e = self.tempeffect_def[eff_id]
if type(t) == "function" then
if t(e) then effs[#effs+1] = eff_id end
elseif (not t.type or e.type == e.type) and (not t.status or e.status == t.status) then
elseif (not t.type or t.type == e.type) and (not t.status or e.status == t.status) then
effs[#effs+1] = eff_id
end
end
......
......@@ -585,13 +585,15 @@ newInscription{
self:project(tg, x, y, DamageType.FIREBURN, {dur=5, initial=0, dam=data.power + data.inc_stat})
local _ _, x, y = self:canProject(tg, x, y)
game.level.map:particleEmitter(self.x, self.y, tg.radius, "flamebeam", {tx=x-self.x, ty=y-self.y})
self:removeEffectsFilter({status="detrimental", type="physical"}, 1)
game:playSoundNear(self, "talents/fire")
attack_rune(self, t.id)
return true
end,
info = function(self, t)
local data = self:getInscriptionData(t.short_name)
return ([[Activate the rune to fire a beam of heat, doing %0.2f fire damage over 5 turns.]]):format(damDesc(self, DamageType.FIRE, data.power + data.inc_stat))
return ([[Activate the rune to fire a beam of heat, doing %0.2f fire damage over 5 turns
The intensity of the heat will also remove one random detrimental physical effect from you.]]):format(damDesc(self, DamageType.FIRE, data.power + data.inc_stat))
end,
short_info = function(self, t)
local data = self:getInscriptionData(t.short_name)
......@@ -621,13 +623,15 @@ newInscription{
local x, y = self:getTarget(tg)
if not x or not y then return nil end
self:project(tg, x, y, DamageType.ICE, data.power + data.inc_stat, {type="freeze"})
self:removeEffectsFilter({status="detrimental", type="mental"}, 1)
game:playSoundNear(self, "talents/ice")
attack_rune(self, t.id)
return true
end,
info = function(self, t)
local data = self:getInscriptionData(t.short_name)
return ([[Activate the rune to fire a bolt of ice, doing %0.2f cold damage with a chance to freeze the target.]]):format(damDesc(self, DamageType.COLD, data.power + data.inc_stat))
return ([[Activate the rune to fire a bolt of ice, doing %0.2f cold damage with a chance to freeze the target.
The deep cold also crystalizes your mind, removing one random detrimental mental effect from you.]]):format(damDesc(self, DamageType.COLD, data.power + data.inc_stat))
end,
short_info = function(self, t)
local data = self:getInscriptionData(t.short_name)
......
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