From: Pasi Kallinen Date: Sun, 2 Jan 2022 17:51:32 +0000 (+0200) Subject: Add theme room: Ghost of an Adventurer X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76381815f333e1cfe5d2c503a504b1f3e6551945;p=nethack Add theme room: Ghost of an Adventurer --- diff --git a/dat/themerms.lua b/dat/themerms.lua index aebbff641..a03d05756 100644 --- a/dat/themerms.lua +++ b/dat/themerms.lua @@ -222,6 +222,36 @@ themerooms = { }); end, + -- Ghost of an Adventurer + function() + des.room({ type = "themed", lit = 0, + contents = function(rm) + local px = nh.rn2(rm.width); + local py = nh.rn2(rm.height); + des.monster({ id = "ghost", waiting = true, coord = {px,py} }); + if percent(65) then + des.object({ id = "dagger", coord = {px,py}, buc = "not-blessed" }); + end + if percent(55) then + des.object({ class = ")", coord = {px,py}, buc = "not-blessed" }); + end + if percent(45) then + des.object({ id = "bow", coord = {px,py}, buc = "not-blessed" }); + des.object({ id = "arrow", coord = {px,py}, buc = "not-blessed" }); + end + if percent(65) then + des.object({ class = "[", coord = {px,py}, buc = "not-blessed" }); + end + if percent(20) then + des.object({ class = "=", coord = {px,py}, buc = "not-blessed" }); + end + if percent(20) then + des.object({ class = "?", coord = {px,py}, buc = "not-blessed" }); + end + end + }); + end, + -- Mausoleum function() des.room({ type = "themed", w = 5 + nh.rn2(3)*2, h = 5 + nh.rn2(3)*2,