Skip to content
Snippets Groups Projects
Commit 6c3ef6ba authored by DarkGod's avatar DarkGod
Browse files

Dogroth Caldera fumes go inactive after the boss deth, even on the first level

parent 387938c3
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ newEntity{ define_as = "MINDWORM",
ai = "tactical", ai_state = { talent_in=1, ai_move="move_astar", },
on_die = function(self)
game.level.data.fumes_active = false
game.zone.fumes_active = false
require("engine.ui.Dialog"):simplePopup("Fumes", "As Mindworm dies you can feel the fumes getting less poisonous for your mind.")
end,
}
......@@ -129,7 +129,7 @@ return {
fumes_active = true,
on_enter = function()
if not game.level.data.fumes_active or game.player:attr("no_breath") then return end
if not game.zone.fumes_active or game.player:attr("no_breath") then return end
if game.level.turn_counter then return end
game.level.turn_counter = 60 * 10 * (game.level.level == 1 and 10 or 1)
......@@ -139,7 +139,7 @@ return {
on_turn = function(self)
if not game.level.turn_counter then return end
if not game.level.data.fumes_active or game.player:attr("no_breath") then return end
if not game.zone.fumes_active or game.player:attr("no_breath") then return end
game.level.turn_counter = game.level.turn_counter - 1
game.player.changed = true
......
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