Source:NetHack 5.0.0/dat/minetn-3.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to minetn-3.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/minetn-3.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 minetn-3.lua	$NHDT-Date: 1652196030 2022/05/10 15:20:30 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.2 $
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. -- Minetown variant 3 by Kelly Bailey
7. -- "Alley Town"
8. 
9. des.room({ type = "ordinary",lit=1,x=3,y=3,
10.            xalign="center",yalign="center",w=31,h=15,
11.            contents = function()
12.               des.feature("fountain", 01,06)
13.               des.feature("fountain", 29,13)
14. 
15.   des.room({ type = "ordinary",x=2,y=2,w=2,h=2,
16.              contents = function()
17.                 des.door({ state="closed", wall="south" })
18.              end
19.   });
20. 
21.   des.room({ type = "tool shop", chance=30, lit=1,x=5,y=3,w=2,h=3,
22.              contents = function()
23.                 des.door({ state="closed", wall="south" })
24.              end
25.   })
26. 
27.   des.room({ type = "ordinary",x=2,y=10,w=2,h=3,
28.              contents = function()
29.                 des.door({ state ="locked", wall="north" })
30.                 des.monster("G")
31.              end
32.   })
33. 
34.   des.room({ type = "ordinary", x=5,y=9,w=2,h=2,
35.              contents = function()
36.                 des.door({ state="closed", wall="north" })
37.              end
38.   })
39. 
40.   des.room({ type = "temple",lit=1,x=10,y=2,w=3,h=4,
41.              contents = function()
42.                 des.door({ state="closed", wall="east" })
43.                 des.altar({ x=1, y=1, align = align[1], type="shrine" })
44.                 des.monster("gnomish wizard")
45.                 des.monster("gnomish wizard")
46.              end
47.   })
48. 
49.   des.room({ type = "ordinary",x=11,y=7,w=2,h=2,
50.              contents = function()
51.                 des.door({ state="closed", wall="west" })
52.              end
53.   })
54. 
55.   des.room({ type = "shop",lit=1,x=10,y=10,w=3,h=3,
56.              contents = function()
57.                 des.door({ state="closed", wall="west" })
58.              end
59.   })
60. 
61.   des.room({ type = "ordinary",random,x=14,y=8,w=2,h=2,
62.              contents = function()
63.                 des.door({ state="locked", wall="north" })
64.                 des.monster("G")
65.              end
66.   })
67. 
68.   des.room({ type = "ordinary",random,x=14,y=11,w=2,h=2,
69.              contents = function()
70.                 des.door({ state="closed", wall="south" })
71.              end
72.   })
73. 
74.   des.room({ type = "tool shop", chance=40,lit=1,x=17,y=10,w=3,h=3,
75.              contents = function()
76.                 des.door({ state="closed", wall="north" })
77.              end
78.   })
79. 
80.   des.room({ type = "ordinary",x=21,y=11,w=2,h=2,
81.              contents = function()
82.                 des.door({ state="locked", wall="east" })
83.                 des.monster("G")
84.              end
85.   })
86. 
87.   des.room({ type = monkfoodshop(), chance=90,lit=1,x=26,y=8,w=3,h=2,
88.              contents = function()
89.                 des.door({ state="closed", wall="west" })
90.              end
91.   })
92. 
93.   des.room({ type = "ordinary",random,x=16,y=2,w=2,h=2,
94.              contents = function()
95.                 des.door({ state="closed", wall="west" })
96.              end
97.   })
98. 
99.   des.room({ type = "ordinary",random,x=19,y=2,w=2,h=2,
100.              contents = function()
101.                 des.door({ state="closed", wall="north" })
102.              end
103.   })
104. 
105.   des.room({ type = "wand shop", chance=30,lit=1,x=19,y=5,w=3,h=2,
106.              contents = function()
107.                 des.door({ state="closed", wall="west" })
108.              end
109.   })
110. 
111.   des.room({ type = "candle shop",lit=1,x=25,y=2,w=3,h=3,
112.              contents = function()
113.                 des.door({ state="closed", wall="south" })
114.              end
115.   })
116. 
117.   des.monster({ id = "watchman", peaceful = 1 })
118.   des.monster({ id = "watchman", peaceful = 1 })
119.   des.monster({ id = "watchman", peaceful = 1 })
120.   des.monster({ id = "watchman", peaceful = 1 })
121.   des.monster({ id = "watch captain", peaceful = 1 })
122. 
123.            end
124. })
125. 
126. des.room({ type = "ordinary", contents = function()
127.               des.stair("up")
128.                                          end
129. })
130. 
131. des.room({ type = "ordinary", contents = function()
132.               des.stair("down")
133.               des.trap()
134.               des.monster("gnome")
135.               des.monster("gnome")
136.                                          end
137. })
138. 
139. des.room({ type = "ordinary", contents = function()
140.               des.monster("dwarf")
141.                                           end
142. })
143. 
144. des.room({ type = "ordinary", contents = function()
145.               des.trap()
146.               des.monster("gnome")
147.                                          end
148. })
149. 
150. des.random_corridors()