/dat/minetn-7.lua

https://github.com/NetHack/NetHack · Lua · 198 lines · 166 code · 26 blank · 6 comment · 11 complexity · 0f469b98eb7f5c0e1ca46001bc1ec0fd MD5 · raw file

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