]> granicus.if.org Git - nethack/commitdiff
Add Pillars themeroom
authorPasi Kallinen <paxed@alt.org>
Tue, 21 Apr 2020 16:52:39 +0000 (19:52 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 21 Apr 2020 16:52:39 +0000 (19:52 +0300)
dat/themerms.lua

index c6732d8dfabb4392798745ce4d0c9d5689a5dc64..acb826cee5f620130b10efc1933729bb3182fb5f 100644 (file)
@@ -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",