Source:NetHack 5.0.0/dat/sanctum.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to sanctum.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/sanctum.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 gehennom sanctum.lua	$NHDT-Date: 1652196034 2022/05/10 15:20:34 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.5 $
2. --	Copyright (c) 1989 by Jean-Christophe Collet
3. --	Copyright (c) 1992 by M. Stephenson and Izchak Miller
4. -- NetHack may be freely redistributed.  See license for details.
5. --
6. des.level_init({ style = "solidfill", fg = " " });
7. 
8. des.level_flags("mazelevel", "noteleport", "hardfloor", "nommap")
9. -- This is outside the main map, below, so we must do it before adding
10. -- that map and anchoring coordinates to it. This extends the invisible
11. -- barrier up to the top row, which falls outside the drawn map.
12. des.non_passwall(selection.area(39,00,41,00))
13. des.map([[
14. ----------------------------------------------------------------------------
15. |             --------------                                               |
16. |             |............|             -------                           |
17. |       -------............-----         |.....|                           |
18. |       |......................|        --.....|            ---------      |
19. |    ----......................---------|......----         |.......|      |
20. |    |........---------..........|......+.........|     ------+---..|      |
21. |  ---........|.......|..........--S----|.........|     |........|..|      |
22. |  |..........|.......|.............|   |.........-------..----------      |
23. |  |..........|.......|..........----   |..........|....|..|......|        |
24. |  |..........|.......|..........|      --.......----+---S---S--..|        |
25. |  |..........---------..........|       |.......|.............|..|        |
26. |  ---...........................|       -----+-------S---------S---       |
27. |    |...........................|          |...| |......|    |....|--     |
28. |    ----.....................----          |...---....---  ---......|     |
29. |       |.....................|             |..........|    |.....----     |
30. |       -------...........-----             --...-------    |.....|        |
31. |             |...........|                  |...|          |.....|        |
32. |             -------------                  -----          -------        |
33. ----------------------------------------------------------------------------
34. ]]);
35. des.region({ region={15,07, 21,10}, lit=1, type="temple", filled=2, contents = function()
36.                 des.door({ wall = "random", state = "secret" });
37. end })
38. des.altar({ x=18, y=08, align="noalign", type="sanctum" })
39. des.region({ region={41,06, 48,11}, lit=0, type="morgue", filled=1, irregular=1 })
40. -- Non diggable walls
41. des.non_diggable(selection.area(00,00,75,19))
42. -- Invisible barrier separating the left & right halves of the level
43. des.non_passwall(selection.area(37,00,39,19))
44. -- Doors
45. des.door("closed",40,06)
46. des.door("locked",62,06)
47. des.door("closed",46,12)
48. des.door("closed",53,10)
49. -- Surround the temple with fire
50. des.trap("fire",13,05)
51. des.trap("fire",14,05)
52. des.trap("fire",15,05)
53. des.trap("fire",16,05)
54. des.trap("fire",17,05)
55. des.trap("fire",18,05)
56. des.trap("fire",19,05)
57. des.trap("fire",20,05)
58. des.trap("fire",21,05)
59. des.trap("fire",22,05)
60. des.trap("fire",23,05)
61. des.trap("fire",13,12)
62. des.trap("fire",14,12)
63. des.trap("fire",15,12)
64. des.trap("fire",16,12)
65. des.trap("fire",17,12)
66. des.trap("fire",18,12)
67. des.trap("fire",19,12)
68. des.trap("fire",20,12)
69. des.trap("fire",21,12)
70. des.trap("fire",22,12)
71. des.trap("fire",23,12)
72. des.trap("fire",13,06)
73. des.trap("fire",13,07)
74. des.trap("fire",13,08)
75. des.trap("fire",13,09)
76. des.trap("fire",13,10)
77. des.trap("fire",13,11)
78. des.trap("fire",23,06)
79. des.trap("fire",23,07)
80. des.trap("fire",23,08)
81. des.trap("fire",23,09)
82. des.trap("fire",23,10)
83. des.trap("fire",23,11)
84. -- Some traps.
85. des.trap("spiked pit")
86. des.trap("fire")
87. des.trap("sleep gas")
88. des.trap("anti magic")
89. des.trap("fire")
90. des.trap("magic")
91. -- Some random objects
92. des.object("[")
93. des.object("[")
94. des.object("[")
95. des.object("[")
96. des.object(")")
97. des.object(")")
98. des.object("*")
99. des.object("!")
100. des.object("!")
101. des.object("!")
102. des.object("!")
103. des.object("?")
104. des.object("?")
105. des.object("?")
106. des.object("?")
107. des.object("?")
108. -- Some monsters.
109. des.monster({ id = "horned devil", x=14,y=12,peaceful=0 })
110. des.monster({ id = "barbed devil", x=18,y=08,peaceful=0 })
111. des.monster({ id = "erinys", x=10,y=04,peaceful=0 })
112. des.monster({ id = "marilith", x=07,y=09,peaceful=0 })
113. des.monster({ id = "nalfeshnee", x=27,y=08,peaceful=0 })
114. -- Moloch's horde
115. des.monster({ id = "aligned cleric", x=20,y=03,align="noalign",peaceful=0 })
116. des.monster({ id = "aligned cleric", x=15,y=04,align="noalign",peaceful=0 })
117. des.monster({ id = "aligned cleric", x=11,y=05,align="noalign",peaceful=0 })
118. des.monster({ id = "aligned cleric", x=11,y=07,align="noalign",peaceful=0 })
119. des.monster({ id = "aligned cleric", x=11,y=09,align="noalign",peaceful=0 })
120. des.monster({ id = "aligned cleric", x=11,y=12,align="noalign",peaceful=0 })
121. des.monster({ id = "aligned cleric", x=15,y=13,align="noalign",peaceful=0 })
122. des.monster({ id = "aligned cleric", x=17,y=13,align="noalign",peaceful=0 })
123. des.monster({ id = "aligned cleric", x=21,y=13,align="noalign",peaceful=0 })
124. -- A few nasties
125. des.monster("L")
126. des.monster("L")
127. des.monster("V")
128. des.monster("V")
129. des.monster("V")
130. des.stair("up", 63,15)
131. -- Teleporting to this level is allowed after the invocation creates its
132. -- entrance.  Force arrival in that case to be on rightmost third of level.
133. des.teleport_region({ region = {54,1,79,18}, region_islev=1, dir="down" })