Source:NetHack 5.0.0/dat/bigrm-3.lua
Jump to navigation
Jump to search
Below is the full text to bigrm-3.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/bigrm-3.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 bigroom bigrm-3.lua $NHDT-Date: 1652196021 2022/05/10 15:20:21 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1 $ 2. -- Copyright (c) 1989 by Jean-Christophe Collet 3. -- Copyright (c) 1990 by M. Stephenson 4. -- NetHack may be freely redistributed. See license for details. 5. -- 6. des.level_init({ style = "solidfill", fg = " " }); 7. des.level_flags("mazelevel", "noflip"); 8. 9. des.map([[ 10. --------------------------------------------------------------------------- 11. |.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.| 12. |.........................................................................| 13. |.........................................................................| 14. |.........................................................................| 15. |..............---.......................................---..............| 16. |...............|.........................................|...............| 17. |.....|.|.|.|.|---|.|.|.|.|...................|.|.|.|.|.|---|.|.|.|.|.....| 18. |.....|-------- --------|...................|---------- --------|.....| 19. |.....|.|.|.|.|---|.|.|.|.|...................|.|.|.|.|.|---|.|.|.|.|.....| 20. |...............|.........................................|...............| 21. |..............---.......................................---..............| 22. |.........................................................................| 23. |.........................................................................| 24. |.........................................................................| 25. |.........................................................................| 26. |.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.| 27. --------------------------------------------------------------------------- 28. ]]); 29. 30. -- Dungeon Description 31. des.region(selection.area(01,01,73,16), "lit"); 32. 33. -- replace some walls 34. if percent(66) then 35. local sel = selection.match("[.w.]"); 36. local terrains = { "F", "T", "W", "Z" }; 37. local choice = terrains[math.random(1, #terrains)]; 38. des.terrain(sel, choice); 39. end 40. 41. -- Stairs 42. des.stair("up"); 43. des.stair("down"); 44. 45. -- Non diggable walls 46. des.non_diggable(); 47. 48. for i = 1,15 do 49. des.object(); 50. end 51. 52. for i = 1,6 do 53. des.trap(); 54. end 55. 56. des.monster({ x = 01, y = 01 }); 57. des.monster({ x = 13, y = 01 }); 58. des.monster({ x = 25, y = 01 }); 59. des.monster({ x = 37, y = 01 }); 60. des.monster({ x = 49, y = 01 }); 61. des.monster({ x = 61, y = 01 }); 62. des.monster({ x = 73, y = 01 }); 63. des.monster({ x = 07, y = 07 }); 64. des.monster({ x = 13, y = 07 }); 65. des.monster({ x = 25, y = 07 }); 66. des.monster({ x = 37, y = 07 }); 67. des.monster({ x = 49, y = 07 }); 68. des.monster({ x = 61, y = 07 }); 69. des.monster({ x = 67, y = 07 }); 70. des.monster({ x = 07, y = 09 }); 71. des.monster({ x = 13, y = 09 }); 72. des.monster({ x = 25, y = 09 }); 73. des.monster({ x = 37, y = 09 }); 74. des.monster({ x = 49, y = 09 }); 75. des.monster({ x = 61, y = 09 }); 76. des.monster({ x = 67, y = 09 }); 77. des.monster({ x = 01, y = 16 }); 78. des.monster({ x = 13, y = 16 }); 79. des.monster({ x = 25, y = 16 }); 80. des.monster({ x = 37, y = 16 }); 81. des.monster({ x = 49, y = 16 }); 82. des.monster({ x = 61, y = 16 }); 83. des.monster({ x = 73, y = 16 });