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

moooarrrrrrrrrrrrr

git-svn-id: http://svn.net-core.org/repos/t-engine4@5554 51575b47-30f0-44d4-a5cc-537603b46e54
parent 245172c8
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,13 @@ newTalent{ ...@@ -81,6 +81,13 @@ newTalent{
cooldown = 20, cooldown = 20,
range = 10, range = 10,
tactical = { DEFEND = 2 }, tactical = { DEFEND = 2 },
getMax = function(self, t)
local v = self:combatTalentMindDamage(t, 20, 80)
if self:knowtTalent(self.T_TRICKY_DEFENSES) then
v = v * (100 + self:getCun() / 2) / 100
end
return v
end,
on_damage = function(self, t, damtype, dam) on_damage = function(self, t, damtype, dam)
if not DamageType:get(damtype).antimagic_resolve then return dam end if not DamageType:get(damtype).antimagic_resolve then return dam end
...@@ -101,7 +108,7 @@ newTalent{ ...@@ -101,7 +108,7 @@ newTalent{
activate = function(self, t) activate = function(self, t)
game:playSoundNear(self, "talents/heal") game:playSoundNear(self, "talents/heal")
return { return {
am = self:addTemporaryValue("antimagic_shield", self:combatTalentMindDamage(t, 20, 80)), am = self:addTemporaryValue("antimagic_shield", t.getMax(self, t)),
} }
end, end,
deactivate = function(self, t, p) deactivate = function(self, t, p)
...@@ -112,7 +119,7 @@ newTalent{ ...@@ -112,7 +119,7 @@ newTalent{
return ([[Surround yourself with a shield that will absorb at most %d magical or elemental damage per attack. return ([[Surround yourself with a shield that will absorb at most %d magical or elemental damage per attack.
Each time damage is absorbed your equilibrium increases by 1 for every 30 points of damage and a check is made, if it fails the shield will crumble. Each time damage is absorbed your equilibrium increases by 1 for every 30 points of damage and a check is made, if it fails the shield will crumble.
Damage shield can absorb will increase with your Mindpower.]]): Damage shield can absorb will increase with your Mindpower.]]):
format(self:combatTalentMindDamage(t, 20, 80)) format(t.getMax(self, t))
end, end,
} }
......
...@@ -66,3 +66,14 @@ uberTalent{ ...@@ -66,3 +66,14 @@ uberTalent{
:format() :format()
end, end,
} }
uberTalent{
name = "Tricky Defenses",
mode = "passive",
require = { special={desc="Antimagic", fct=function(self) return self:knowTalentType("wild-gift/antimagic") end} },
info = function(self, t)
return ([[You are full of tricks and surprises, your Antimagic Shield can absorb %d%% more damage.
The increase scales with Cunning.]])
:format(self:getCun() / 2)
end,
}
...@@ -83,3 +83,22 @@ uberTalent{ ...@@ -83,3 +83,22 @@ uberTalent{
:format() :format()
end, end,
} }
uberTalent{
name = "Windtouched Speed",
mode = "passive",
require = { special={desc="Know at least 20 talent levels of equilibrium using talents.", fct=function(self) return knowRessource(self, "equilibrium", 20) end} },
on_learn = function(self, t)
self:attr("global_speed_add", 0.15)
self:attr("avoid_pressure_traps", 1)
end,
on_unlearn = function(self, t)
self:attr("global_speed_add", -0.15)
self:attr("avoid_pressure_traps", -1)
end,
info = function(self, t)
return ([[You are attuned wih Nature and she helps you in your fight against the arcane forces.
You gain 15%% permanent global speed and avoidance of pressure traps.]])
:format()
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