Skip to content
Snippets Groups Projects
Commit 9cb4a11f authored by Lisa Greene's avatar Lisa Greene
Browse files

Fix weaver queen's portal being destroyed by temporary terrain

parent 12bee6c4
No related branches found
No related tags found
1 merge request!637Misc (mostly bugfixes)
......@@ -162,8 +162,14 @@ newEntity{ base = "BASE_NPC_SPIDER", define_as = "WEAVER_QUEEN",
on_die = function(self, who)
game.player:resolveSource():setQuestStatus("start-point-zero", engine.Quest.COMPLETED, "morass")
require("engine.ui.Dialog"):simplePopup(_t"Weaver Queen", _t"As you vanquish the queen you notice a temporal thread that seems to have been controlling her. It seems to go through a rift.")
local rift = game.zone:makeEntityByName(game.level, "terrain", "RIFT_HOME")
game.zone:addEntity(game.level, rift, "terrain", self.x, self.y)
require("engine.ui.Dialog"):simplePopup("Weaver Queen", "As you vanquish the queen you notice a temporal thread that seems to have been controlling her. It seems to go through a rift.")
local g = game.zone:makeEntityByName(game.level, "terrain", "RIFT_HOME")
local oe = game.level.map(npc.x, npc.y, engine.Map.TERRAIN)
if oe:attr("temporary") and oe.old_feat then
oe.old_feat = g
else
game.zone:addEntity(game.level, g, "terrain", self.x, self.y)
end
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