Source:NetHack 3.4.3/dat/castle.des

From NetHackWiki
Jump to: navigation, search

Below is the full text to dat/castle.des from NetHack 3.4.3. To link to a particular line, write {{sourcecode|castle.des|123}}, for example.

This file describes the layout of the Castle.

License[edit]

1.    #	SCCS Id: @(#)castle.des	3.4	2002/05/02
2.    #	Copyright (c) 1989 by Jean-Christophe Collet
3.    # NetHack may be freely redistributed.  See license for details.

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.

Level layout[edit]

4.    #
5.    # This is the stronghold level :
6.    # there are several ways to enter it :
7.    #	- opening the drawbridge (wand of opening, knock spell, playing
8.    #	  the appropriate tune)
9.    #
10.   #	- enter via the back entry (this suppose a ring of levitation, boots
11.   #	  of water walking, etc.)
12.   #
13.   # Note : If you don't play the right tune, you get indications like in the
14.   #	 MasterMind game...
15.   #
16.   # To motivate the player : there are 4 storerooms (armors, weapons, food and
17.   # gems) and a wand of wishing in one of the 4 towers...
18.   
19.   MAZE:"castle",random
20.   FLAGS: noteleport
21.   GEOMETRY:center,center
22.   MAP
23.   }}}}}}}}}.............................................}}}}}}}}}
24.   }-------}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}-------}
25.   }|.....|-----------------------------------------------|.....|}
26.   }|.....+...............................................+.....|}
27.   }-------------------------------+-----------------------------}
28.   }}}}}}|........|..........+...........|.......S.S.......|}}}}}}
29.   .....}|........|..........|...........|.......|.|.......|}.....
30.   .....}|........------------...........---------S---------}.....
31.   .....}|...{....+..........+.........\.S.................+......
32.   .....}|........------------...........---------S---------}.....
33.   .....}|........|..........|...........|.......|.|.......|}.....
34.   }}}}}}|........|..........+...........|.......S.S.......|}}}}}}
35.   }-------------------------------+-----------------------------}
36.   }|.....+...............................................+.....|}
37.   }|.....|-----------------------------------------------|.....|}
38.   }-------}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}-------}
39.   }}}}}}}}}.............................................}}}}}}}}}
40.   ENDMAP
41.   
42.   # Random registers initialisation
43.   RANDOM_OBJECTS:'[',')','*','%'
44.   RANDOM_PLACES:(04,02),(58,02),(04,14),(58,14)
45.   RANDOM_MONSTERS:'L','N','E','H','M','O','R','T','X','Z'
46.   
47.   TELEPORT_REGION:levregion(01,00,10,20),(1,1,61,15),down
48.   TELEPORT_REGION:levregion(69,00,79,20),(1,1,61,15),up
49.   STAIR:levregion(01,00,10,20),(0,0,62,16),up
50.   FOUNTAIN:(10,08)
51.   # Doors
52.   DOOR:closed,(07,03)
53.   DOOR:closed,(55,03)
54.   DOOR:locked,(32,04)
55.   DOOR:locked,(26,05)
56.   DOOR:locked,(46,05)
57.   DOOR:locked,(48,05)
58.   DOOR:locked,(47,07)
59.   DOOR:closed,(15,08)
60.   DOOR:closed,(26,08)
61.   DOOR:locked,(38,08)
62.   DOOR:locked,(56,08)
63.   DOOR:locked,(47,09)
64.   DOOR:locked,(26,11)
65.   DOOR:locked,(46,11)
66.   DOOR:locked,(48,11)
67.   DOOR:locked,(32,12)
68.   DOOR:closed,(07,13)
69.   DOOR:closed,(55,13)
70.   # The drawbridge
71.   DRAWBRIDGE:(05,08),east,closed
72.   # Storeroom number 1
73.   OBJECT:object[0],random,(39,05)
74.   OBJECT:object[0],random,(40,05)
75.   OBJECT:object[0],random,(41,05)
76.   OBJECT:object[0],random,(42,05)
77.   OBJECT:object[0],random,(43,05)
78.   OBJECT:object[0],random,(44,05)
79.   OBJECT:object[0],random,(45,05)
80.   OBJECT:object[0],random,(39,06)
81.   OBJECT:object[0],random,(40,06)
82.   OBJECT:object[0],random,(41,06)
83.   OBJECT:object[0],random,(42,06)
84.   OBJECT:object[0],random,(43,06)
85.   OBJECT:object[0],random,(44,06)
86.   OBJECT:object[0],random,(45,06)
87.   # Storeroom number 2
88.   OBJECT:object[1],random,(49,05)
89.   OBJECT:object[1],random,(50,05)
90.   OBJECT:object[1],random,(51,05)
91.   OBJECT:object[1],random,(52,05)
92.   OBJECT:object[1],random,(53,05)
93.   OBJECT:object[1],random,(54,05)
94.   OBJECT:object[1],random,(55,05)
95.   OBJECT:object[1],random,(49,06)
96.   OBJECT:object[1],random,(50,06)
97.   OBJECT:object[1],random,(51,06)
98.   OBJECT:object[1],random,(52,06)
99.   OBJECT:object[1],random,(53,06)
100.  OBJECT:object[1],random,(54,06)
101.  OBJECT:object[1],random,(55,06)
102.  # Storeroom number 3
103.  OBJECT:object[2],random,(39,10)
104.  OBJECT:object[2],random,(40,10)
105.  OBJECT:object[2],random,(41,10)
106.  OBJECT:object[2],random,(42,10)
107.  OBJECT:object[2],random,(43,10)
108.  OBJECT:object[2],random,(44,10)
109.  OBJECT:object[2],random,(45,10)
110.  OBJECT:object[2],random,(39,11)
111.  OBJECT:object[2],random,(40,11)
112.  OBJECT:object[2],random,(41,11)
113.  OBJECT:object[2],random,(42,11)
114.  OBJECT:object[2],random,(43,11)
115.  OBJECT:object[2],random,(44,11)
116.  OBJECT:object[2],random,(45,11)
117.  # Storeroom number 4
118.  OBJECT:object[3],random,(49,10)
119.  OBJECT:object[3],random,(50,10)
120.  OBJECT:object[3],random,(51,10)
121.  OBJECT:object[3],random,(52,10)
122.  OBJECT:object[3],random,(53,10)
123.  OBJECT:object[3],random,(54,10)
124.  OBJECT:object[3],random,(55,10)
125.  OBJECT:object[3],random,(49,11)
126.  OBJECT:object[3],random,(50,11)
127.  OBJECT:object[3],random,(51,11)
128.  OBJECT:object[3],random,(52,11)
129.  OBJECT:object[3],random,(53,11)
130.  OBJECT:object[3],random,(54,11)
131.  OBJECT:object[3],random,(55,11)
132.  # THE WAND OF WISHING in 1 of the 4 towers
133.  CONTAINER:'(',"chest",place[0]
134.  OBJECT:'/',"wishing",contained
135.  # Prevent monsters from eating it.  (@'s never eat objects)
136.  ENGRAVING:place[0],burn,"Elbereth"
137.  # The treasure of the lord
138.  OBJECT:'(',"chest",(37,08)
139.  # Traps
140.  TRAP:"trap door",(40,08)
141.  TRAP:"trap door",(44,08)
142.  TRAP:"trap door",(48,08)
143.  TRAP:"trap door",(52,08)
144.  TRAP:"trap door",(55,08)
145.  # Soldiers guarding the entry hall
146.  MONSTER:'@',"soldier",(08,06)
147.  MONSTER:'@',"soldier",(09,05)
148.  MONSTER:'@',"soldier",(11,05)
149.  MONSTER:'@',"soldier",(12,06)
150.  MONSTER:'@',"soldier",(08,10)
151.  MONSTER:'@',"soldier",(09,11)
152.  MONSTER:'@',"soldier",(11,11)
153.  MONSTER:'@',"soldier",(12,10)
154.  MONSTER:'@',"lieutenant",(09,08)
155.  # Soldiers guarding the towers
156.  MONSTER:'@',"soldier",(03,02)
157.  MONSTER:'@',"soldier",(05,02)
158.  MONSTER:'@',"soldier",(57,02)
159.  MONSTER:'@',"soldier",(59,02)
160.  MONSTER:'@',"soldier",(03,14)
161.  MONSTER:'@',"soldier",(05,14)
162.  MONSTER:'@',"soldier",(57,14)
163.  MONSTER:'@',"soldier",(59,14)
164.  # The four dragons that are guarding the storerooms
165.  MONSTER:'D',random,(47,05)
166.  MONSTER:'D',random,(47,06)
167.  MONSTER:'D',random,(47,10)
168.  MONSTER:'D',random,(47,11)
169.  # Sea monsters in the moat
170.  MONSTER:';',"giant eel",(05,07)
171.  MONSTER:';',"giant eel",(05,09)
172.  MONSTER:';',"giant eel",(57,07)
173.  MONSTER:';',"giant eel",(57,09)
174.  MONSTER:';',"shark",(05,00)
175.  MONSTER:';',"shark",(05,16)
176.  MONSTER:';',"shark",(57,00)
177.  MONSTER:';',"shark",(57,16)
178.  # The throne room and the court monsters
179.  MONSTER:monster[0],random,(27,05)
180.  MONSTER:monster[1],random,(30,05)
181.  MONSTER:monster[2],random,(33,05)
182.  MONSTER:monster[3],random,(36,05)
183.  MONSTER:monster[4],random,(28,06)
184.  MONSTER:monster[5],random,(31,06)
185.  MONSTER:monster[6],random,(34,06)
186.  MONSTER:monster[7],random,(37,06)
187.  MONSTER:monster[8],random,(27,07)
188.  MONSTER:monster[9],random,(30,07)
189.  MONSTER:monster[0],random,(33,07)
190.  MONSTER:monster[1],random,(36,07)
191.  MONSTER:monster[2],random,(28,08)
192.  MONSTER:monster[3],random,(31,08)
193.  MONSTER:monster[4],random,(34,08)
194.  MONSTER:monster[5],random,(27,09)
195.  MONSTER:monster[6],random,(30,09)
196.  MONSTER:monster[7],random,(33,09)
197.  MONSTER:monster[8],random,(36,09)
198.  MONSTER:monster[9],random,(28,10)
199.  MONSTER:monster[0],random,(31,10)
200.  MONSTER:monster[1],random,(34,10)
201.  MONSTER:monster[2],random,(37,10)
202.  MONSTER:monster[3],random,(27,11)
203.  MONSTER:monster[4],random,(30,11)
204.  MONSTER:monster[5],random,(33,11)
205.  MONSTER:monster[6],random,(36,11)
206.  # MazeWalks
207.  MAZEWALK:(00,10),west
208.  MAZEWALK:(62,06),east
209.  # Non diggable walls
210.  NON_DIGGABLE:(00,00,62,16)
211.  # Subrooms:
212.  #   Entire castle area
213.  REGION:(00,00,62,16),unlit,"ordinary"
214.  #   Courtyards
215.  REGION:(00,05,05,11),lit,"ordinary"
216.  REGION:(57,05,62,11),lit,"ordinary"
217.  #   Throne room
218.  REGION:(27,05,37,11),lit,"throne",unfilled
219.  #   Antechamber
220.  REGION:(07,05,14,11),lit,"ordinary"
221.  #   Storerooms
222.  REGION:(39,05,45,06),lit,"ordinary"
223.  REGION:(39,10,45,11),lit,"ordinary"
224.  REGION:(49,05,55,06),lit,"ordinary"
225.  REGION:(49,10,55,11),lit,"ordinary"
226.  #   Corners
227.  REGION:(02,02,06,03),lit,"ordinary"
228.  REGION:(56,02,60,03),lit,"ordinary"
229.  REGION:(02,13,06,14),lit,"ordinary"
230.  REGION:(56,13,60,14),lit,"ordinary"
231.  #   Barracks
232.  REGION:(16,05,25,06),lit,"barracks"
233.  REGION:(16,10,25,11),lit,"barracks"
234.  #   Hallways
235.  REGION:(08,03,54,03),unlit,"ordinary"
236.  REGION:(08,13,54,13),unlit,"ordinary"
237.  REGION:(16,08,25,08),unlit,"ordinary"
238.  REGION:(39,08,55,08),unlit,"ordinary"
239.  #   Storeroom alcoves
240.  REGION:(47,05,47,06),unlit,"ordinary"
241.  REGION:(47,10,47,11),unlit,"ordinary"

References[edit]