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

Cursed Pity talent has a reduced range and a chance to fail

Cursed Form is now a generic talent line
Rampage is now a class talent line


git-svn-id: http://svn.net-core.org/repos/t-engine4@1490 51575b47-30f0-44d4-a5cc-537603b46e54
parent 65925687
No related branches found
No related tags found
No related merge requests found
......@@ -1487,8 +1487,7 @@ function _M:canSeeNoCache(actor, def, def_pct)
if actor:knowTalent(self.T_PITY) then
local t = actor:getTalentFromId(self.T_PITY)
if math.floor(core.fov.distance(self.x, self.y, actor.x, actor.y)) >= actor:getTalentRange(t) then
print("* pity: ", math.floor(core.fov.distance(self.x, self.y, actor.x, actor.y)), actor:getTalentRange(t))
return false, 0
return false, 50 - actor:getTalentLevel(self.T_PITY) * 5
end
end
......
......@@ -18,11 +18,11 @@
-- darkgod@te4.org
-- Afflictions
newTalentType{ type="cursed/cursed-form", name = "cursed form", description = "You are wracked with the dark energies of the curse." }
newTalentType{ type="cursed/cursed-form", name = "cursed form", generic = true, description = "You are wracked with the dark energies of the curse." }
newTalentType{ type="cursed/slaughter", name = "slaughter", description = "Your axe yearns for its next victim." }
newTalentType{ type="cursed/endless-hunt", name = "endless hunt", description = "Each day you lift your weary body and begin the unending hunt." }
newTalentType{ type="cursed/gloom", name = "gloom", description = "All those in your sight must share your despair." }
newTalentType{ type="cursed/rampage", name = "rampage", generic = true, description = "Let loose the hate that has grown within." }
newTalentType{ type="cursed/rampage", name = "rampage", description = "Let loose the hate that has grown within." }
newTalentType{ type="cursed/dark-figure", name = "dark figure", generic = true, description = "Life as an outcast has given you time to reflect on your misfortunes." }
-- Generic requires for corruptions based on talent level
......
......@@ -127,7 +127,7 @@ newTalent{
end,
on_unlearn = function(self, t)
end,
range = function(self, t) return 18 - math.floor(self:getTalentLevel(t) * 2) end,
range = function(self, t) return 18 - math.floor(self:getTalentLevel(t) * 1.4) end,
info = function(self, t)
local range = t.range(self, t)
return ([[You hide your terrible nature behind a pitiful figure. Those that see you from a distance of %d will ignore you.]]):format(range)
......
No preview for this file type
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