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

True Grit also raises your all damage resists cap

git-svn-id: http://svn.net-core.org/repos/t-engine4@5186 51575b47-30f0-44d4-a5cc-537603b46e54
parent 54b4d4d3
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,10 @@ newTalent{
do_turn = function(self, t)
local p = self:isTalentActive(t.id)
if p.resid then self:removeTemporaryValue("resists", p.resid) end
if p.cresid then self:removeTemporaryValue("resists_cap", p.cresid) end
local perc = (1 - (self.life / self.max_life)) * 10 * 5
p.resid = self:addTemporaryValue("resists", {all=perc})
p.cresid = self:addTemporaryValue("resists_cap", {all=perc/2})
end,
getStaminaDrain = function(self, t)
return -16 + 2 * self:getTalentLevelRaw(t)
......@@ -116,13 +118,14 @@ newTalent{
end,
deactivate = function(self, t, p)
if p.resid then self:removeTemporaryValue("resists", p.resid) end
if p.cresid then self:removeTemporaryValue("resists_cap", p.cresid) end
self:removeTemporaryValue("stamina_regen", p.stamina)
return true
end,
info = function(self, t)
local drain = t.getStaminaDrain(self, t)
return ([[Take a defensive stance to resist the onslaught of your foes.
For each 10%% of your total life you lack, you gain 5%% global damage resistance.
For each 10%% of your total life you lack, you gain 5%% global damage resistance and global damage resistance cap.
This consumes stamina rapidly(%d stamina/turn).]]):
format(drain)
end,
......
......@@ -54,15 +54,15 @@ newTalent{
require = techs_req_high2,
points = 5,
random_ego = "utility",
cooldown = 100,
cooldown = 50,
tactical = { STAMINA = 2 },
action = function(self, t)
self:incStamina(20 + self:getTalentLevel(t) * 12)
self:incStamina((20 + self:getTalentLevel(t) * 7) * self.max_stamina / 100)
return true
end,
info = function(self, t)
return ([[Take a deep breath to recover %d stamina.]]):
format(20 + self:getTalentLevel(t) * 12)
return ([[Take a deep breath to recover %d%% stamina.]]):
format(20 + self:getTalentLevel(t) * 7)
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