Source:NetHack 5.0.0/dat/minetn-7.lua
Jump to navigation
Jump to search
Below is the full text to minetn-7.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/minetn-7.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-7.lua $NHDT-Date: 1652196032 2022/05/10 15:20:32 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.3 $ 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. -- "Bazaar Town" by Kelly Bailey 7. 8. des.room({ type="ordinary", lit=1, x=3,y=3, 9. xalign="center",yalign="center", w=30,h=15, 10. contents = function() 11. des.feature("fountain", 12, 07) 12. des.feature("fountain", 11, 13) 13. 14. if percent(75) then 15. des.room({ type="ordinary", x=2,y=2, w=4,h=2, 16. contents = function() 17. des.door({ state = "closed", wall="south" }) 18. end 19. }) 20. end 21. 22. if percent(75) then 23. des.room({ type="ordinary", x=7,y=2, w=2,h=2, 24. contents = function() 25. des.door({ state = "closed", wall="north" }) 26. end 27. }) 28. end 29. 30. if percent(75) then 31. des.room({ type="ordinary", x=7,y=5, w=2,h=2, 32. contents = function() 33. des.door({ state = "closed", wall="south" }) 34. end 35. }) 36. end 37. 38. if percent(75) then 39. des.room({ type="ordinary", lit=1, x=10,y=2, w=3,h=4, 40. contents = function() 41. des.monster("gnome") 42. des.monster("monkey") 43. des.monster("monkey") 44. des.monster("monkey") 45. des.door({ state = "closed", wall="south" }) 46. end 47. }) 48. end 49. 50. if percent(75) then 51. des.room({ type="ordinary", x=14,y=2, w=4,h=2, 52. contents = function() 53. des.door({ state = "closed", wall="south", pos=0 }) 54. des.monster("n") 55. end 56. }) 57. end 58. 59. if percent(75) then 60. des.room({ type="ordinary", x=16,y=5, w=2,h=2, 61. contents = function() 62. des.door({ state = "closed", wall="south" }) 63. end 64. }) 65. end 66. 67. if percent(75) then 68. des.room({ type="ordinary", lit=0, x=19,y=2, w=2,h=2, 69. contents = function() 70. des.door({ state = "locked", wall="east" }) 71. des.monster("gnome king") 72. end 73. }) 74. end 75. 76. des.room({ type=monkfoodshop(), chance=50, lit=1, x=19,y=5, w=2,h=3, 77. contents = function() 78. des.door({ state = "closed", wall="south" }) 79. end 80. }) 81. 82. if percent(75) then 83. des.room({ type="ordinary", x=2,y=7, w=2,h=2, 84. contents = function() 85. des.door({ state = "closed", wall="east" }) 86. end 87. }) 88. end 89. 90. des.room({ type="tool shop", chance=50, lit=1, x=2,y=10, w=2,h=3, 91. contents = function() 92. des.door({ state = "closed", wall="south" }) 93. end 94. }) 95. 96. des.room({ type="candle shop", lit=1, x=5,y=10, w=3,h=3, 97. contents = function() 98. des.door({ state = "closed", wall="north" }) 99. end 100. }) 101. 102. if percent(75) then 103. des.room({ type="ordinary", x=11,y=10, w=2,h=2, 104. contents = function() 105. des.door({ state = "locked", wall="west" }) 106. des.monster("G") 107. end 108. }) 109. end 110. 111. des.room({ type="shop", chance=60, lit=1, x=14,y=10, w=2,h=3, 112. contents = function() 113. des.door({ state = "closed", wall="north" }) 114. end 115. }) 116. 117. if percent(75) then 118. des.room({ type="ordinary", x=17,y=11, w=4,h=2, 119. contents = function() 120. des.door({ state = "closed", wall="north" }) 121. end 122. }) 123. end 124. 125. if percent(75) then 126. des.room({ type="ordinary", x=22,y=11, w=2,h=2, 127. contents = function() 128. des.door({ state = "closed", wall="south" }) 129. des.feature("sink", 00,00) 130. end 131. }) 132. end 133. 134. des.room({ type=monkfoodshop(), chance=50, lit=1, x=25,y=11, w=3,h=2, 135. contents = function() 136. des.door({ state = "closed", wall="east" }) 137. end 138. }) 139. 140. des.room({ type="tool shop", chance=30, lit=1, x=25,y=2, w=3,h=3, 141. contents = function() 142. des.door({ state = "closed", wall="west" }) 143. end 144. }) 145. 146. des.room({ type="temple", lit=1, x=24,y=6, w=4,h=4, 147. contents = function() 148. des.door({ state = "closed", wall = "west" }) 149. des.altar({ x=02, y=01, align=align[1], type="shrine" }) 150. des.monster("gnomish wizard") 151. des.monster("gnomish wizard") 152. end 153. }) 154. 155. des.monster({ id = "watchman", peaceful = 1 }) 156. des.monster({ id = "watchman", peaceful = 1 }) 157. des.monster({ id = "watchman", peaceful = 1 }) 158. des.monster({ id = "watchman", peaceful = 1 }) 159. des.monster({ id = "watch captain", peaceful = 1 }) 160. des.monster("gnome") 161. des.monster("gnome") 162. des.monster("gnome") 163. des.monster("gnome lord") 164. des.monster("monkey") 165. des.monster("monkey") 166. 167. end 168. }) 169. 170. des.room({ type="ordinary", 171. contents = function() 172. des.stair("up") 173. end 174. }) 175. 176. des.room({ type="ordinary", 177. contents = function() 178. des.stair("down") 179. des.trap() 180. des.monster("gnome") 181. des.monster("gnome") 182. end 183. }) 184. 185. des.room({ type="ordinary", 186. contents = function() 187. des.monster("dwarf") 188. end 189. }) 190. 191. des.room({ type="ordinary", 192. contents = function() 193. des.trap() 194. des.monster("gnome") 195. end 196. }) 197. 198. des.random_corridors()