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

Heithened senses/infravision allows to see as with a light in a 1/4th radius

git-svn-id: http://svn.net-core.org/repos/t-engine4@1901 51575b47-30f0-44d4-a5cc-537603b46e54
parent 877d9144
No related branches found
No related tags found
No related merge requests found
......@@ -266,7 +266,7 @@ function _M:playerFOV()
-- Handle infravision/heightened_senses which allow to see outside of lite radius but with LOS
if self:attr("infravision") or self:attr("heightened_senses") then
local rad = (self.heightened_senses or 0) + (self.infravision or 0)
local rad2 = math.max(1, rad/4)
local rad2 = math.max(1, math.floor(rad / 4))
self:computeFOV(rad, "block_sight", function(x, y) if game.level.map(x, y, game.level.map.ACTOR) then game.level.map.seens(x, y, 1) end end, true, true, true)
self:computeFOV(rad2, "block_sight", function(x, y, dx, dy, sqdist) game.level.map:applyLite(x, y) end, true, true, true)
end
......
......@@ -52,6 +52,7 @@ newTalent{
mode = "sustained",
points = 5,
cooldown = 10,
sustain_equilibrium = 30,
range = 20,
tactical = {
DEFEND = 10,
......
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