Skip to content
Snippets Groups Projects
Commit 23c201e2 authored by DarkGod's avatar DarkGod
Browse files

Tannen's Tower level 4 has a different LOS system, making the Drolem obscure...

Tannen's Tower level 4 has a different LOS system, making the Drolem obscure more of the field again
parent 710c5d5d
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ function _M:listSavefiles(moddir_filter)
local def = self:loadSavefileDescription(dir)
if def then
if fs.exists(dir.."/cur.png") then
def.screenshot_src = true
def.screenshot = core.display.loadImage(dir.."/cur.png")
end
table.insert(lss, def)
......
......@@ -370,6 +370,8 @@ function _M:loaded()
if self.always_target == true then Map:setViewerFaction(self.player.faction) end
if self.player and config.settings.cheat then self.player.__cheated = true end
self:updateCurrentChar()
if self.zone and self.zone.on_loaded then self.zone.on_loaded(self.level.level) end
end
function _M:computeAttachementSpotsFromTable(ta)
......
......@@ -31,7 +31,7 @@ return {
return {
trail = 0,
life = 8,
size = 64, sizev = 8 * radius, sizea = 0,
size = 80, sizev = 8 * radius, sizea = 0,
x = 0, xv = 0, xa = 0,
y = 0, yv = 0, ya = 0,
......
......@@ -55,6 +55,19 @@ return {
require("engine.ui.Dialog"):simplePopup("Tannen's Tower", "The portal brought you to what seems to be a cell in the basement of the tower. You must escape!")
game.level.shown_warning = true
end
if lev == 4 then
core.fov.set_actor_vision_size(0)
end
end,
on_leave = function()
if game.level.level == 4 then
core.fov.set_actor_vision_size(1)
end
end,
on_loaded = function() -- When the game is loaded from a savefile
game:onTickEnd(function() if game.level.level == 4 then
core.fov.set_actor_vision_size(0)
end end)
end,
levels =
{
......
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