From e29d4eaba6c456b8f362238ae094cd73a01e6da4 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 13 Jul 2011 15:15:00 +0000 Subject: [PATCH] Buffed True Grit git-svn-id: http://svn.net-core.org/repos/t-engine4@3830 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../data/talents/techniques/battle-tactics.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/game/modules/tome/data/talents/techniques/battle-tactics.lua b/game/modules/tome/data/talents/techniques/battle-tactics.lua index 87bd8b0d5a..b2bd75284f 100644 --- a/game/modules/tome/data/talents/techniques/battle-tactics.lua +++ b/game/modules/tome/data/talents/techniques/battle-tactics.lua @@ -102,12 +102,15 @@ newTalent{ do_turn = function(self, t) local p = self:isTalentActive(t.id) if p.resid then self:removeTemporaryValue("resists", p.resid) end - local perc = (1 - (self.life / self.max_life)) * 10 * (1 + math.floor(self:getTalentLevel(t) / 1.4)) + local perc = (1 - (self.life / self.max_life)) * 10 * 5 p.resid = self:addTemporaryValue("resists", {all=perc}) end, + getStaminaDrain = function(self, t) + return -16 + 2 * self:getTalentLevelRaw(t) + end, activate = function(self, t) return { - stamina = self:addTemporaryValue("stamina_regen", -15), + stamina = self:addTemporaryValue("stamina_regen", t.getStaminaDrain(self, t)) } end, deactivate = function(self, t, p) @@ -116,9 +119,10 @@ newTalent{ return true end, info = function(self, t) + local drain = t.getStaminaDrain(self, t) return ([[Take an defensive stance to resist the onslaught of your foes. - For each 10%% of your total life you lack, you gain %d%% global damage resistance. - This consumes stamina rapidly(-15 stamina/turn).]]): - format(1 + math.floor(self:getTalentLevel(t) / 1.4)) + For each 10%% of your total life you lack, you gain 5%% global damage resistance. + This consumes stamina rapidly(%d stamina/turn).]]): + format(drain) end, } -- GitLab