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

Heavy & Massive Armour Training talents now increase armour by a bit more and...

Heavy & Massive Armour Training talents now increase armour by a bit more and reduce the chance of incomming critical hits


git-svn-id: http://svn.net-core.org/repos/t-engine4@1161 51575b47-30f0-44d4-a5cc-537603b46e54
parent b7585f1a
No related branches found
No related tags found
No related merge requests found
......@@ -374,10 +374,10 @@ end
function _M:combatArmor()
local add = 0
if self:hasHeavyArmor() and self:knowTalent(self.T_HEAVY_ARMOUR_TRAINING) then
add = add + self:getTalentLevel(self.T_HEAVY_ARMOUR_TRAINING)
add = add + self:getTalentLevel(self.T_HEAVY_ARMOUR_TRAINING) * 1.4
end
if self:hasMassiveArmor() and self:knowTalent(self.T_MASSIVE_ARMOUR_TRAINING) then
add = add + self:getTalentLevel(self.T_MASSIVE_ARMOUR_TRAINING)
add = add + self:getTalentLevel(self.T_MASSIVE_ARMOUR_TRAINING) * 1.6
end
return self.combat_armor + add
end
......@@ -516,6 +516,13 @@ function _M:physicalCrit(dam, weapon, target)
local crit = false
if self:knowTalent(self.T_BACKSTAB) and target:attr("stunned") then chance = chance + self:getTalentLevel(self.T_BACKSTAB) * 10 end
if target:hasHeavyArmor() and target:knowTalent(target.T_HEAVY_ARMOUR_TRAINING) then
chance = chance - target:getTalentLevel(target.T_HEAVY_ARMOUR_TRAINING) * 1.9
end
if target:hasMassiveArmor() and target:knowTalent(target.T_MASSIVE_ARMOUR_TRAINING) then
chance = chance - target:getTalentLevel(target.T_MASSIVE_ARMOUR_TRAINING) * 1.5
end
print("[PHYS CRIT %]", chance)
if rng.percent(chance) then
dam = dam * 1.5
......
......@@ -24,8 +24,8 @@ newTalent{
points = 5,
require = { stat = { str=18 }, },
info = function(self, t)
return ([[Teaches the usage of heavy mail armours. Increases amour value by %d when wearing a heavy mail armour.]]):
format(self:getTalentLevel(t))
return ([[Teaches the usage of heavy mail armours. Increases armour value by %d and reducing chance to be criticaly hit by %d%% when wearing a heavy mail armour.]]):
format(self:getTalentLevel(t) * 1.4, self:getTalentLevel(t) * 1.9)
end,
}
......@@ -36,8 +36,8 @@ newTalent{
points = 5,
require = { stat = { str=22 }, talent = { Talents.T_HEAVY_ARMOUR_TRAINING }, },
info = function(self, t)
return ([[Teaches the usage of massive plate armours. Increases amour value by %d when wearing a massive plate armour.]]):
format(self:getTalentLevel(t))
return ([[Teaches the usage of massive plate armours. Increases armour value by %dand reducing chance to be criticaly hit by %d%% when wearing a massive plate armour.]]):
format(self:getTalentLevel(t) * 1.6, self:getTalentLevel(t) * 1.5)
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