Code: Select all
core.fov.calc_circle(
eff.x, eff.y, eff.radius, function(_, x, y) if map:checkAllEntities(x, y, "block_sight", self) then return true end end,
function(_, x, y)
map.seens(x, y, 1)
end,
cache and map._fovcache["block_sight"]
)
EDIT: Oh, and Arcane Eye should pick up the require_target flag so that it can be targeted using the right mouse click.
EDIT2: On second thought, maybe instead of map.seens it should be map:apply? Currently the new terrain you see is not added to remembered terrain.