From a1f2000afd524c9991986f70a88ab7ab30e5aa49 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 10 Apr 2022 14:30:55 +0300 Subject: [PATCH] Fix castle engraving and scroll Fixes #723 --- dat/castle.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dat/castle.lua b/dat/castle.lua index 585aa5e6d..9be74a8ae 100644 --- a/dat/castle.lua +++ b/dat/castle.lua @@ -140,14 +140,15 @@ des.object(object[4],53,11) des.object(object[4],54,11) des.object(object[4],55,11) -- THE WAND OF WISHING in 1 of the 4 towers -des.object({ id = "chest", trapped = 0, locked = 1, coord = place:rndcoord(1), +local loc = place:rndcoord(1); +des.object({ id = "chest", trapped = 0, locked = 1, coord = loc , contents = function() des.object("wishing"); end }); -- Prevent monsters from eating it. (@'s never eat objects) -des.engraving({ x = px, y = py, type="burn", text="Elbereth" }) -des.object({ id = "scare monster", x = px, y = py, buc="cursed" }) +des.engraving({ coord = loc, type="burn", text="Elbereth" }) +des.object({ id = "scare monster", coord = loc, buc="cursed" }) -- The treasure of the lord des.object("chest",37,08) -- Traps