Source:NetHack 5.0.0/dat/bigrm-12.lua
Jump to navigation
Jump to search
Below is the full text to bigrm-12.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/bigrm-12.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-12.lua $NHDT-Date: $ $NHDT-Branch: NetHack-3.7 $ 2. -- Copyright (c) 2024 by Pasi Kallinen 3. -- NetHack may be freely redistributed. See license for details. 4. -- 5. -- Two hexagons 6. 7. des.level_flags("mazelevel", "noflipy"); 8. des.level_init({ style = "solidfill", fg = " " }); 9. 10. des.map([[ 11. 12. ....................... ....................... 13. ......................... ......................... 14. ........................... ........................... 15. ............................. ............................. 16. ........PPPPPPPPPPPPPPP........ ........LLLLLLLLLLLLLLL........ 17. ........PPPPPPPPPPPPPPPPP........ ........LLLLLLLLLLLLLLLLL........ 18. ........PPPWWWWWWWWWWWWWPPP...............LLLZZZZZZZZZZZZZLLL........ 19. ........PPPWWWWWWWWWWWWWWWPPP.............LLLZZZZZZZZZZZZZZZLLL........ 20. ........PPPWWWWWWWWWWWWWWWWWPPP...........LLLZZZZZZZZZZZZZZZZZLLL........ 21. ........PPPWWWWWWWWWWWWWWWPPP.............LLLZZZZZZZZZZZZZZZLLL........ 22. ........PPPWWWWWWWWWWWWWPPP...............LLLZZZZZZZZZZZZZLLL........ 23. ........PPPPPPPPPPPPPPPPP........ ........LLLLLLLLLLLLLLLLL........ 24. ........PPPPPPPPPPPPPPP........ ........LLLLLLLLLLLLLLL........ 25. ............................. ............................. 26. ........................... ........................... 27. ......................... ......................... 28. ....................... ....................... 29. 30. ]]); 31. 32. -- maybe replace lavawalls/waterwalls with stone walls 33. if percent(20) then 34. if percent(50) then 35. des.replace_terrain({ fromterrain = "W", toterrain = "-" }); 36. end 37. if percent(50) then 38. des.replace_terrain({ fromterrain = "Z", toterrain = "-" }); 39. end 40. end 41. 42. -- maybe replace pools with floor and then possibly walls with pools 43. if percent(25) then 44. des.replace_terrain({ fromterrain = "P", toterrain = "." }); 45. if percent(75) then 46. des.replace_terrain({ fromterrain = "W", toterrain = "P" }); 47. end 48. end 49. if percent(25) then 50. des.replace_terrain({ fromterrain = "L", toterrain = "." }); 51. if percent(75) then 52. des.replace_terrain({ fromterrain = "Z", toterrain = "L" }); 53. end 54. end 55. 56. -- maybe make both sides have the same terrain 57. if percent(20) then 58. if percent(50) then 59. -- both are lava 60. des.replace_terrain({ fromterrain = "P", toterrain = "L" }); 61. des.replace_terrain({ fromterrain = "W", toterrain = "Z" }); 62. else 63. -- both are water 64. des.replace_terrain({ fromterrain = "L", toterrain = "P" }); 65. des.replace_terrain({ fromterrain = "Z", toterrain = "W" }); 66. end 67. end 68. 69. des.region(selection.area(00,00,75,19), "lit") 70. des.non_diggable(); 71. 72. des.wallify(); 73. 74. des.stair("up"); 75. des.stair("down"); 76. 77. for i = 1,15 do 78. des.object(); 79. end 80. for i = 1,6 do 81. des.trap(); 82. end 83. for i = 1,28 do 84. des.monster(); 85. end