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

Improves Retch and switched places in the tree

git-svn-id: http://svn.net-core.org/repos/t-engine4@3305 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1131add3
No related branches found
No related tags found
No related merge requests found
......@@ -984,7 +984,7 @@ newDamageType{
projector = function(src, x, y, type, dam)
local target = game.level.map(x, y, Map.ACTOR)
if target and target.undead then
target:heal(dam)
target:heal(dam * 1.5)
elseif target then
DamageType:get(DamageType.BLIGHT).projector(src, x, y, DamageType.BLIGHT, dam)
end
......
......@@ -82,10 +82,43 @@ newTalent{
}
newTalent{
name = "Gnaw",
type = {"undead/ghoul", 3},
name = "Retch",
type = {"undead/ghoul",3},
require = undeads_req3,
points = 5,
cooldown = 25,
tactical = { ATTACK = 1, HEAL = 1 },
range=1,
requires_target = true,
action = function(self, t)
local duration = self:getTalentLevelRaw(t) * 2 + 5
local radius = 3
local dam = 10 + self:combatTalentStatDamage(t, "con", 10, 60)
local tg = {type="ball", range=self:getTalentRange(t), radius=radius}
-- Add a lasting map effect
game.level.map:addEffect(self,
self.x, self.y, duration,
DamageType.RETCH, dam,
radius,
5, nil,
engine.Entity.new{alpha=100, display='', color_br=30, color_bg=180, color_bb=60},
nil, self:spellFriendlyFire()
)
game:playSoundNear(self, "talents/cloud")
return true
end,
info = function(self, t)
local dam = 10 + self:combatTalentStatDamage(t, "con", 10, 60)
return ([[Vomit on the ground around you, healing any undead in the area and damaging others.
Lasts %d turns and deals %d blight damage or heals %d life.]]):format(self:getTalentLevelRaw(t) * 2 + 5, damDesc(self, DamageType.BLIGHT, dam), dam * 1.5)
end,
}
newTalent{
name = "Gnaw",
type = {"undead/ghoul", 4},
require = undeads_req4,
points = 5,
cooldown = 15,
tactical = { ATTACK = 1, DISABLE = 2 },
range = 1,
......@@ -113,34 +146,3 @@ newTalent{
end,
}
newTalent{
name = "Retch",
type = {"undead/ghoul",4},
require = undeads_req4,
points = 5,
cooldown = 25,
tactical = { ATTACK = 1, HEAL = 1 },
range=1,
requires_target = true,
action = function(self, t)
local duration = self:getTalentLevel(t) / 2 + 4
local radius = 3
local dam = (2 + self:getCon(8)) * self:getTalentLevel(t)
local tg = {type="ball", range=self:getTalentRange(t), radius=radius}
-- Add a lasting map effect
game.level.map:addEffect(self,
self.x, self.y, duration,
DamageType.RETCH, dam,
radius,
5, nil,
engine.Entity.new{alpha=100, display='', color_br=30, color_bg=180, color_bb=60},
nil, self:spellFriendlyFire()
)
game:playSoundNear(self, "talents/cloud")
return true
end,
info = function(self, t)
return ([[Vomit on the ground around you, healing any undead in the area and damaging others.
Lasts %d turns and deals %d blight damage.]]):format(self:getTalentLevel(t) / 2 + 4, damDesc(self, DamageType.BLIGHT, (2 + self:getCon(8)) * self:getTalentLevel(t)))
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