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

Fixed corrupting the heart of the sandworm queen on the altar on the same turn as being fearscaped

parent 74634519
No related branches found
No related tags found
No related merge requests found
......@@ -32,12 +32,14 @@ newEntity{ base = "ALTAR",
require("engine.ui.Dialog"):yesnoPopup("Heart of the Sandworm Queen", "The altar seems to react to the heart. You feel you could corrupt it here.", function(ret)
if ret then return end
who:removeObject(inven, item, true)
local o = game.zone:makeEntityByName(game.level, "object", "CORRUPTED_SANDQUEEN_HEART", true)
o:identify(true)
who:addObject(who.INVEN_INVEN, o)
who:sortInven(who.INVEN_INVEN)
game.log("#GREEN#You put the heart on the altar. The heart shrivels and shakes, vibrating with new corrupt forces.")
if o then
who:removeObject(inven, item, true)
o:identify(true)
who:addObject(who.INVEN_INVEN, o)
who:sortInven(who.INVEN_INVEN)
game.log("#GREEN#You put the heart on the altar. The heart shrivels and shakes, vibrating with new corrupt forces.")
end
end, "Cancel", "Corrupt", nil, true)
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