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

Fixed Earth's Eyes

Fixed Bathe in Light


git-svn-id: http://svn.net-core.org/repos/t-engine4@1118 51575b47-30f0-44d4-a5cc-537603b46e54
parent 35c63611
No related merge requests found
......@@ -339,12 +339,16 @@ function _M:magicMap(radius, x, y)
x = x or self.x
y = y or self.y
radius = math.floor(radius)
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
core.fov.calc_circle(x, y, radius, function(_, i, j)
if game.level.map:isBound(i, j) then
game.level.map.remembers(i, j, true)
game.level.map.has_seens(i, j, true)
end
end end
end, function()end, nil)
if game.level.map:isBound(x, y) then
game.level.map.remembers(x, y, true)
game.level.map.has_seens(x, y, true)
end
end
function _M:getRankStatAdjust()
......
......@@ -53,7 +53,7 @@ newTalent{
action = function(self, t)
local duration = self:getTalentLevel(t) + 2
local radius = 3
local dam = self:combatTalentSpellDamage(t, 4, 20)
local dam = self:combatTalentSpellDamage(t, 4, 30)
local tg = {type="ball", range=self:getTalentRange(t), radius=radius}
-- Add a lasting map effect
game.level.map:addEffect(self,
......@@ -62,14 +62,14 @@ newTalent{
radius,
5, nil,
{type="healing_vapour"},
nil, false
nil, true
)
game:playSoundNear(self, "talents/heal")
return true
end,
info = function(self, t)
return ([[A magical zone of sunlight appears around you, healing all that stand within.
The life healed will increase with the Magic stat]]):format(self:combatTalentSpellDamage(t, 4, 20))
The life healed will increase with the Magic stat]]):format(self:combatTalentSpellDamage(t, 4, 30))
end,
}
......
......@@ -76,16 +76,16 @@ newTalent{
cooldown = 10,
range = 100,
action = function(self, t)
local x, y = self:getTarget{type="ball", nolock=true, no_restrict=true, nowarning=true, range=100, radius=3 + self:getTalentLevel(t)}
local x, y = self:getTarget{type="ball", nolock=true, no_restrict=true, nowarning=true, range=100, radius=math.ceil(3 + self:getTalentLevel(t))}
if not x then return nil end
self:magicMap(3 + self:getTalentLevel(t), x, y)
self:magicMap(math.ceil(3 + self:getTalentLevel(t)), x, y)
game:playSoundNear(self, "talents/spell_generic2")
return true
end,
info = function(self, t)
return ([[Using your connection to Nature you can see remote areas in a radius of %d.]]):
format(3 + self:getTalentLevel(t))
format(math.ceil(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