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

Preternatural Senses now provide stealth and invisibility vision

git-svn-id: http://svn.net-core.org/repos/t-engine4@6707 51575b47-30f0-44d4-a5cc-537603b46e54
parent 72d39150
No related branches found
No related tags found
No related merge requests found
......@@ -1618,6 +1618,7 @@ end
function _M:combatSeeStealth()
local bonus = 0
if self:knowTalent(self.T_PIERCING_SIGHT) then bonus = bonus + 5 + self:getTalentLevel(self.T_PIERCING_SIGHT) * self:getCun(15, true) end
if self:knowTalent(self.T_PRETERNATURAL_SENSES) then bonus = bonus + 5 + self:getTalentLevel(self.T_PRETERNATURAL_SENSES) * self:getWil(15, true) end
return self.level / 2 + self:getCun(25, true) + (self:attr("see_stealth") or 0) + bonus
end
......@@ -1625,6 +1626,7 @@ end
function _M:combatSeeInvisible()
local bonus = 0
if self:knowTalent(self.T_PIERCING_SIGHT) then bonus = bonus + 5 + self:getTalentLevel(self.T_PIERCING_SIGHT) * self:getCun(15, true) end
if self:knowTalent(self.T_PRETERNATURAL_SENSES) then bonus = bonus + 5 + self:getTalentLevel(self.T_PRETERNATURAL_SENSES) * self:getWil(15, true) end
return (self:attr("see_invisible") or 0) + bonus
end
......
......@@ -86,7 +86,10 @@ newTalent{
end,
info = function(self, t)
local range = self:getTalentRange(t)
return ([[Your preternatural senses aid you in your hunt for the next victim. You sense foes in a radius of %0.1f. You will always sense a stalked victim in a radius of 10.]]):format(range)
return ([[Your preternatural senses aid you in your hunt for the next victim. You sense foes in a radius of %0.1f. You will always sense a stalked victim in a radius of 10.
Also increases stealth detection by %d and invisibility detection by %d.
Sealth and invisibility detection improves with your Willpower]]):
format(range, 5 + self:getTalentLevel(t) * self:getWil(15, true), 5 + self:getTalentLevel(t) * self:getWil(15, true))
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