From: Pasi Kallinen Date: Tue, 21 Apr 2020 16:52:39 +0000 (+0300) Subject: Add Pillars themeroom X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc42b0f7a5c09839118d0b94c2781c501f4bb12f;p=nethack Add Pillars themeroom --- diff --git a/dat/themerms.lua b/dat/themerms.lua index c6732d8df..acb826cee 100644 --- a/dat/themerms.lua +++ b/dat/themerms.lua @@ -163,6 +163,24 @@ themerooms = { }); end, + -- Pillars + function() + des.room({ type = "themed", w = 10, h = 10, + contents = function(rm) + local terr = { "-", "-", "-", "-", "L", "P", "T" }; + shuffle(terr); + for x = 0, (rm.width - 3) / 4 do + for y = 0, (rm.height - 3) / 4 do + des.terrain({ x = x * 4 + 2, y = y * 4 + 2, typ = terr[1], lit = -2 }); + des.terrain({ x = x * 4 + 3, y = y * 4 + 2, typ = terr[1], lit = -2 }); + des.terrain({ x = x * 4 + 2, y = y * 4 + 3, typ = terr[1], lit = -2 }); + des.terrain({ x = x * 4 + 3, y = y * 4 + 3, typ = terr[1], lit = -2 }); + end + end + end + }); + end, + -- Statuary function() des.room({ type = "themed",