]> granicus.if.org Git - nethack/commitdiff
Tutorial: pushing boulders
authorPasi Kallinen <paxed@alt.org>
Fri, 3 Mar 2023 14:14:22 +0000 (16:14 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 3 Mar 2023 14:14:22 +0000 (16:14 +0200)
dat/tut-1.lua

index 9105a89e4d48e76095d43409d4583828d06ceb4c..0fdc3bcd55eb2d1a29288071230af7f655dc6240 100644 (file)
@@ -13,13 +13,13 @@ des.map([[
 |-+-S-------------|.......................................................|
 |......|          |.......................................................|
 |......|  ######  |.......................................................|
-|----.-| -+-   #  |.......................................................|
-|----+----.----+---.......................................................|
-|........|.|......|.......................................................|
-|.P......-S|......|------.................................................|
-|..........|......+.|...|.................................................|
-|.W......---......|.|.|.|.................................................|
-|....Z.L.|.F......|.|.|.|+---.............................................|
+|----.-| -+-   #  |.....-----.............................................|
+|----+----.----+---.....|...|.............................................|
+|........|.|......|.....F...|.............................................|
+|.P......-S|......|------.---.............................................|
+|..........|......+.|...|.---.............................................|
+|.W......---......|.|.|.|.+...............................................|
+|....Z.L.|.F......|.|.|.|.---.............................................|
 |........|--......|...|.....|.............................................|
 ---------------------------------------------------------------------------
 ]]);
@@ -113,15 +113,20 @@ des.monster({ id = "lichen", coord = { 23,15 }, waiting = true, countbirth = fal
 
 --
 
-des.door({ coord = { 25,15 }, state = percent(50) and "locked" or "closed" });
-
 des.engraving({ coord = { 24,16 }, type = "engrave", text = "Now you know the very basics. You can leave the tutorial via the magic portal.", degrade = false });
 
 des.trap({ type = "magic portal", coord = { 27,16 }, seen = true });
 
 --
 
-des.engraving({ coord = { 25,14 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });
+des.engraving({ coord = { 25,13 }, type = "engrave", text = "Push boulders by moving into them", degrade = false });
+des.object({ id = "boulder", coord = {25,12} });
+
+--
+
+des.door({ coord = { 26,14 }, state = "locked" });
+
+des.engraving({ coord = { 27,14 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });
 
 --