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

Burrow is now a temporary effect, and third talent in the Sand Drake line

git-svn-id: http://svn.net-core.org/repos/t-engine4@1146 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0dbec2d8
No related branches found
No related tags found
No related merge requests found
......@@ -18,38 +18,10 @@
-- darkgod@te4.org
newTalent{
name = "Burrow",
name = "Swallow",
type = {"wild-gift/sand-drake", 1},
require = gifts_req1,
points = 5,
mode = "sustained",
sustain_equilibrium = 30,
cooldown = 30,
range = 20,
activate = function(self, t)
return {
pass = self:addTemporaryValue("can_pass", {pass_wall=1}),
dig = self:addTemporaryValue("move_project", {[DamageType.DIG]=1}),
drain = self:addTemporaryValue("equilibrium_regen", 8 - self:getTalentLevelRaw(t)),
}
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("equilibrium_regen", p.drain)
self:removeTemporaryValue("move_project", p.dig)
self:removeTemporaryValue("can_pass", p.pass)
return true
end,
info = function(self, t)
return ([[Allows to burrow into walls, increasing equilibrium quickly.
Higher talent levels reduce equilibrium cost per turn.]])
end,
}
newTalent{
name = "Swallow",
type = {"wild-gift/sand-drake", 2},
require = gifts_req2,
points = 5,
equilibrium = 10,
cooldown = 20,
range = 1,
......@@ -84,8 +56,8 @@ newTalent{
newTalent{
name = "Quake",
type = {"wild-gift/sand-drake", 3},
require = gifts_req3,
type = {"wild-gift/sand-drake", 2},
require = gifts_req2,
points = 5,
random_ego = "attack",
message = "@Source@ shakes the ground!",
......@@ -107,6 +79,23 @@ newTalent{
end,
}
newTalent{
name = "Burrow",
type = {"wild-gift/sand-drake", 3},
require = gifts_req3,
points = 5,
equilibrium = 50,
cooldown = 30,
range = 20,
action = function(self, t)
self:setEffect(self.EFF_BURROW, 5 + self:getTalentLevel(t) * 3, {})
return true
end,
info = function(self, t)
return ([[Allows to burrow into walls for %d turns.]]):format(5 + self:getTalentLevel(t) * 3)
end,
}
newTalent{
name = "Sand Breath",
type = {"wild-gift/sand-drake", 4},
......
......@@ -1229,3 +1229,19 @@ newEffect{
self.faction = eff.olf_faction
end,
}
newEffect{
name = "BURROW",
desc = "Burrow",
type = "physical",
status = "beneficial",
parameters = { },
activate = function(self, eff)
eff.pass = self:addTemporaryValue("can_pass", {pass_wall=1})
eff.dig = self:addTemporaryValue("move_project", {[DamageType.DIG]=1})
end,
deactivate = function(self, eff)
self:removeTemporaryValue("can_pass", eff.pass)
self:removeTemporaryValue("move_project", eff.dig)
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