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

From NetHackWiki
Jump to navigation Jump to search

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