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

earth's eyes

git-svn-id: http://svn.net-core.org/repos/t-engine4@503 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8361b7c3
No related branches found
No related tags found
No related merge requests found
......@@ -232,10 +232,12 @@ function _M:doQuake(tg, x, y)
end
--- Reveals location surrounding the actor
function _M:magicMap(radius)
function _M:magicMap(radius, x, y)
x = x or self.x
y = y or self.y
radius = math.floor(radius)
for i = self.x - radius, self.x + radius do for j = self.y - radius, self.y + radius do
if game.level.map:isBound(i, j) and core.fov.distance(self.x, self.y, i, j) < radius then
for i = x - radius, x + radius do for j = y - radius, y + radius do
if game.level.map:isBound(i, j) and core.fov.distance(x, y, i, j) < radius then
game.level.map.remembers(i, j, true)
end
end end
......
......@@ -64,20 +64,23 @@ newTalent{
}
newTalent{
name = "???",
name = "Earth's Eyes",
type = {"wild-gift/call", 3},
require = gifts_req3,
points = 5,
equilibrium = 0,
cooldown = 300,
range = 20,
equilibrium = 3,
cooldown = 10,
range = 100,
action = function(self, t)
local x, y = self:getTarget{type="ball", nolock=true, no_restrict=true, range=100, radius=3 + self:getTalentLevel(t)}
if not x then return nil end
self:magicMap(3 + self:getTalentLevel(t), x, y)
return true
end,
info = function(self, t)
return ([[Meditate on your link with Nature. You are considered stunned for %d turns and regenerate %d equilibrium.
The effect will incease with your Willpower stat.]]):
format(17 - self:getTalentLevel(t), 10 + self:getWil(50) * self:getTalentLevel(t))
return ([[Using your connection to Nature you can see remote areas in a radius of %d.]]):
format(3 + self:getTalentLevel(t))
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