Source:NetHack 3.6.0/dat/castle.des

From NetHackWiki
(Redirected from Castle.des)
Jump to: navigation, search

Below is the full text to castle.des from the source code of NetHack 3.6.0. To link to a particular line, write [[Source:NetHack 3.6.0/dat/castle.des#line123]], 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 3.6	castle.des	$NHDT-Date: 1432512783 2015/05/25 00:13:03 $  $NHDT-Branch: master $:$NHDT-Revision: 1.11 $
  2. #	Copyright (c) 1989 by Jean-Christophe Collet
  3. # NetHack may be freely redistributed.  See license for details.
  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. $object = object: { '[',')','*','%' }
  44. SHUFFLE: $object
  45.  
  46. $place = { (04,02),(58,02),(04,14),(58,14) }
  47. SHUFFLE: $place
  48.  
  49. $monster = monster: { 'L','N','E','H','M','O','R','T','X','Z' }
  50. SHUFFLE: $monster
  51.  
  52.  
  53. TELEPORT_REGION:levregion(01,00,10,20),(1,1,61,15),down
  54. TELEPORT_REGION:levregion(69,00,79,20),(1,1,61,15),up
  55. STAIR:levregion(01,00,10,20),(0,0,62,16),up
  56. FOUNTAIN:(10,08)
  57. # Doors
  58. DOOR:closed,(07,03)
  59. DOOR:closed,(55,03)
  60. DOOR:locked,(32,04)
  61. DOOR:locked,(26,05)
  62. DOOR:locked,(46,05)
  63. DOOR:locked,(48,05)
  64. DOOR:locked,(47,07)
  65. DOOR:closed,(15,08)
  66. DOOR:closed,(26,08)
  67. DOOR:locked,(38,08)
  68. DOOR:locked,(56,08)
  69. DOOR:locked,(47,09)
  70. DOOR:locked,(26,11)
  71. DOOR:locked,(46,11)
  72. DOOR:locked,(48,11)
  73. DOOR:locked,(32,12)
  74. DOOR:closed,(07,13)
  75. DOOR:closed,(55,13)
  76. # The drawbridge
  77. DRAWBRIDGE:(05,08),east,closed
  78. # Storeroom number 1
  79. OBJECT:$object[0],(39,05)
  80. OBJECT:$object[0],(40,05)
  81. OBJECT:$object[0],(41,05)
  82. OBJECT:$object[0],(42,05)
  83. OBJECT:$object[0],(43,05)
  84. OBJECT:$object[0],(44,05)
  85. OBJECT:$object[0],(45,05)
  86. OBJECT:$object[0],(39,06)
  87. OBJECT:$object[0],(40,06)
  88. OBJECT:$object[0],(41,06)
  89. OBJECT:$object[0],(42,06)
  90. OBJECT:$object[0],(43,06)
  91. OBJECT:$object[0],(44,06)
  92. OBJECT:$object[0],(45,06)
  93. # Storeroom number 2
  94. OBJECT:$object[1],(49,05)
  95. OBJECT:$object[1],(50,05)
  96. OBJECT:$object[1],(51,05)
  97. OBJECT:$object[1],(52,05)
  98. OBJECT:$object[1],(53,05)
  99. OBJECT:$object[1],(54,05)
  100. OBJECT:$object[1],(55,05)
  101. OBJECT:$object[1],(49,06)
  102. OBJECT:$object[1],(50,06)
  103. OBJECT:$object[1],(51,06)
  104. OBJECT:$object[1],(52,06)
  105. OBJECT:$object[1],(53,06)
  106. OBJECT:$object[1],(54,06)
  107. OBJECT:$object[1],(55,06)
  108. # Storeroom number 3
  109. OBJECT:$object[2],(39,10)
  110. OBJECT:$object[2],(40,10)
  111. OBJECT:$object[2],(41,10)
  112. OBJECT:$object[2],(42,10)
  113. OBJECT:$object[2],(43,10)
  114. OBJECT:$object[2],(44,10)
  115. OBJECT:$object[2],(45,10)
  116. OBJECT:$object[2],(39,11)
  117. OBJECT:$object[2],(40,11)
  118. OBJECT:$object[2],(41,11)
  119. OBJECT:$object[2],(42,11)
  120. OBJECT:$object[2],(43,11)
  121. OBJECT:$object[2],(44,11)
  122. OBJECT:$object[2],(45,11)
  123. # Storeroom number 4
  124. OBJECT:$object[3],(49,10)
  125. OBJECT:$object[3],(50,10)
  126. OBJECT:$object[3],(51,10)
  127. OBJECT:$object[3],(52,10)
  128. OBJECT:$object[3],(53,10)
  129. OBJECT:$object[3],(54,10)
  130. OBJECT:$object[3],(55,10)
  131. OBJECT:$object[3],(49,11)
  132. OBJECT:$object[3],(50,11)
  133. OBJECT:$object[3],(51,11)
  134. OBJECT:$object[3],(52,11)
  135. OBJECT:$object[3],(53,11)
  136. OBJECT:$object[3],(54,11)
  137. OBJECT:$object[3],(55,11)
  138. # THE WAND OF WISHING in 1 of the 4 towers
  139. CONTAINER:('(',"chest"),not_trapped,$place[0] {
  140. OBJECT:('/',"wishing")
  141. }
  142. # Prevent monsters from eating it.  (@'s never eat objects)
  143. ENGRAVING:$place[0],burn,"Elbereth"
  144. OBJECT:('?',"scare monster"),$place[0],cursed
  145. # The treasure of the lord
  146. OBJECT:('(',"chest"),(37,08)
  147. # Traps
  148. TRAP:"trap door",(40,08)
  149. TRAP:"trap door",(44,08)
  150. TRAP:"trap door",(48,08)
  151. TRAP:"trap door",(52,08)
  152. TRAP:"trap door",(55,08)
  153. # Soldiers guarding the entry hall
  154. MONSTER:('@',"soldier"),(08,06)
  155. MONSTER:('@',"soldier"),(09,05)
  156. MONSTER:('@',"soldier"),(11,05)
  157. MONSTER:('@',"soldier"),(12,06)
  158. MONSTER:('@',"soldier"),(08,10)
  159. MONSTER:('@',"soldier"),(09,11)
  160. MONSTER:('@',"soldier"),(11,11)
  161. MONSTER:('@',"soldier"),(12,10)
  162. MONSTER:('@',"lieutenant"),(09,08)
  163. # Soldiers guarding the towers
  164. MONSTER:('@',"soldier"),(03,02)
  165. MONSTER:('@',"soldier"),(05,02)
  166. MONSTER:('@',"soldier"),(57,02)
  167. MONSTER:('@',"soldier"),(59,02)
  168. MONSTER:('@',"soldier"),(03,14)
  169. MONSTER:('@',"soldier"),(05,14)
  170. MONSTER:('@',"soldier"),(57,14)
  171. MONSTER:('@',"soldier"),(59,14)
  172. # The four dragons that are guarding the storerooms
  173. MONSTER:'D',(47,05)
  174. MONSTER:'D',(47,06)
  175. MONSTER:'D',(47,10)
  176. MONSTER:'D',(47,11)
  177. # Sea monsters in the moat
  178. MONSTER:(';',"giant eel"),(05,07)
  179. MONSTER:(';',"giant eel"),(05,09)
  180. MONSTER:(';',"giant eel"),(57,07)
  181. MONSTER:(';',"giant eel"),(57,09)
  182. MONSTER:(';',"shark"),(05,00)
  183. MONSTER:(';',"shark"),(05,16)
  184. MONSTER:(';',"shark"),(57,00)
  185. MONSTER:(';',"shark"),(57,16)
  186. # The throne room and the court monsters
  187. MONSTER:$monster[0],(27,05)
  188. MONSTER:$monster[1],(30,05)
  189. MONSTER:$monster[2],(33,05)
  190. MONSTER:$monster[3],(36,05)
  191. MONSTER:$monster[4],(28,06)
  192. MONSTER:$monster[5],(31,06)
  193. MONSTER:$monster[6],(34,06)
  194. MONSTER:$monster[7],(37,06)
  195. MONSTER:$monster[8],(27,07)
  196. MONSTER:$monster[9],(30,07)
  197. MONSTER:$monster[0],(33,07)
  198. MONSTER:$monster[1],(36,07)
  199. MONSTER:$monster[2],(28,08)
  200. MONSTER:$monster[3],(31,08)
  201. MONSTER:$monster[4],(34,08)
  202. MONSTER:$monster[5],(27,09)
  203. MONSTER:$monster[6],(30,09)
  204. MONSTER:$monster[7],(33,09)
  205. MONSTER:$monster[8],(36,09)
  206. MONSTER:$monster[9],(28,10)
  207. MONSTER:$monster[0],(31,10)
  208. MONSTER:$monster[1],(34,10)
  209. MONSTER:$monster[2],(37,10)
  210. MONSTER:$monster[3],(27,11)
  211. MONSTER:$monster[4],(30,11)
  212. MONSTER:$monster[5],(33,11)
  213. MONSTER:$monster[6],(36,11)
  214. # MazeWalks
  215. MAZEWALK:(00,10),west
  216. MAZEWALK:(62,06),east
  217. # Non diggable walls
  218. NON_DIGGABLE:(00,00,62,16)
  219. # Subrooms:
  220. #   Entire castle area
  221. REGION:(00,00,62,16),unlit,"ordinary"
  222. #   Courtyards
  223. REGION:(00,05,05,11),lit,"ordinary"
  224. REGION:(57,05,62,11),lit,"ordinary"
  225. #   Throne room
  226. REGION:(27,05,37,11),lit,"throne",unfilled
  227. #   Antechamber
  228. REGION:(07,05,14,11),lit,"ordinary"
  229. #   Storerooms
  230. REGION:(39,05,45,06),lit,"ordinary"
  231. REGION:(39,10,45,11),lit,"ordinary"
  232. REGION:(49,05,55,06),lit,"ordinary"
  233. REGION:(49,10,55,11),lit,"ordinary"
  234. #   Corners
  235. REGION:(02,02,06,03),lit,"ordinary"
  236. REGION:(56,02,60,03),lit,"ordinary"
  237. REGION:(02,13,06,14),lit,"ordinary"
  238. REGION:(56,13,60,14),lit,"ordinary"
  239. #   Barracks
  240. REGION:(16,05,25,06),lit,"barracks"
  241. REGION:(16,10,25,11),lit,"barracks"
  242. #   Hallways
  243. REGION:(08,03,54,03),unlit,"ordinary"
  244. REGION:(08,13,54,13),unlit,"ordinary"
  245. REGION:(16,08,25,08),unlit,"ordinary"
  246. REGION:(39,08,55,08),unlit,"ordinary"
  247. #   Storeroom alcoves
  248. REGION:(47,05,47,06),unlit,"ordinary"
  249. REGION:(47,10,47,11),unlit,"ordinary"