Source:NetHack 5.0.0/dat/minend-1.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to minend-1.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/minend-1.lua#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. -- NetHack mines minend-1.lua	$NHDT-Date: 1652196029 2022/05/10 15:20:29 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.3 $
2. --	Copyright (c) 1989-95 by Jean-Christophe Collet
3. --	Copyright (c) 1991-95 by M. Stephenson
4. -- NetHack may be freely redistributed.  See license for details.
5. --
6. -- Mine end level variant 1
7. -- "Mimic of the Mines"
8. 
9. des.level_init({ style = "solidfill", fg = " " });
10. 
11. des.level_flags("mazelevel");
12. 
13. des.map([[
14. ------------------------------------------------------------------   ------
15. |                        |.......|     |.......-...|       |.....|.       |
16. |    ---------        ----.......-------...........|       ---...-S-      |
17. |    |.......|        |..........................-S-      --.......|      |
18. |    |......-------   ---........................|.       |.......--      |
19. |    |..--........-----..........................|.       -.-..----       |
20. |    --..--.-----........-.....................---        --..--          |
21. |     --..--..| -----------..................---.----------..--           |
22. |      |...--.|    |..S...S..............---................--            |
23. |     ----..-----  ------------........--- ------------...---             |
24. |     |.........--            ----------              ---...-- -----      |
25. |    --.....---..--                           --------  --...---...--     |
26. | ----..-..-- --..---------------------      --......--  ---........|     |
27. |--....-----   --..-..................---    |........|    |.......--     |
28. |.......|       --......................S..  --......--    ---..----      |
29. |--.--.--        ----.................---     ------..------...--         |
30. | |....S..          |...............-..|         ..S...........|          |
31. --------            --------------------           ------------------------
32. ]]);
33. 
34. -- Dungeon Description
35. local place = { {08,16},{13,07},{21,08},{41,14},{50,04},{50,16},{66,01} }
36. shuffle(place)
37. 
38. -- make the entry chamber a real room; it affects monster arrival
39. des.region({ region={26,01,32,01}, lit=0, type="ordinary", irregular=1, arrival_room=true })
40. des.region(selection.area(20,08,21,08),"unlit")
41. des.region(selection.area(23,08,25,08),"unlit");
42. -- Secret doors
43. des.door("locked",07,16)
44. des.door("locked",22,08)
45. des.door("locked",26,08)
46. des.door("locked",40,14)
47. des.door("locked",50,03)
48. des.door("locked",51,16)
49. des.door("locked",66,02)
50. -- Stairs
51. des.stair("up", 36,04)
52. -- Non diggable walls
53. des.non_diggable(selection.area(00,00,74,17))
54. -- Niches
55. -- Note: place[6] empty
56. des.object("diamond",place[7])
57. des.object("emerald",place[7])
58. des.object("worthless piece of violet glass",place[7])
59. des.monster({ class="m", coord=place[7], appear_as="obj:luckstone" })
60. des.object("worthless piece of white glass",place[1])
61. des.object("emerald",place[1])
62. des.object("amethyst",place[1])
63. des.monster({ class="m", coord=place[1], appear_as="obj:loadstone" })
64. des.object("diamond",place[2])
65. des.object("worthless piece of green glass",place[2])
66. des.object("amethyst",place[2])
67. des.monster({ class="m", coord=place[2], appear_as="obj:flint" })
68. des.object("worthless piece of white glass",place[3])
69. des.object("emerald",place[3])
70. des.object("worthless piece of violet glass",place[3])
71. des.monster({ class="m", coord=place[3], appear_as="obj:touchstone" })
72. des.object("worthless piece of red glass",place[4])
73. des.object("ruby",place[4])
74. des.object("loadstone",place[4])
75. des.object("ruby",place[5])
76. des.object("worthless piece of red glass",place[5])
77. des.object({ id="luckstone", coord=place[5], buc="not-cursed", achievement=1 })
78. -- Random objects
79. des.object("*")
80. des.object("*")
81. des.object("*")
82. des.object("*")
83. des.object("*")
84. des.object("*")
85. des.object("*")
86. des.object("(")
87. des.object("(")
88. des.object()
89. des.object()
90. des.object()
91. -- Random traps
92. des.trap()
93. des.trap()
94. des.trap()
95. des.trap()
96. des.trap()
97. des.trap()
98. -- Random monsters
99. des.monster("gnome king")
100. des.monster("gnome lord")
101. des.monster("gnome lord")
102. des.monster("gnome lord")
103. des.monster("gnomish wizard")
104. des.monster("gnomish wizard")
105. des.monster("gnome")
106. des.monster("gnome")
107. des.monster("gnome")
108. des.monster("gnome")
109. des.monster("gnome")
110. des.monster("gnome")
111. des.monster("gnome")
112. des.monster("gnome")
113. des.monster("gnome")
114. des.monster("hobbit")
115. des.monster("hobbit")
116. des.monster("dwarf")
117. des.monster("dwarf")
118. des.monster("dwarf")
119. des.monster("h")