Source:NetHack 5.0.0/dat/bigrm-4.lua
Jump to navigation
Jump to search
Below is the full text to bigrm-4.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/bigrm-4.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-4.lua $NHDT-Date: 1652196022 2022/05/10 15:20:22 $ $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. --......LLLLL.......................................LLLLL......-- 18. --.....LLLLL.......................................LLLLL.....-- 19. --.....LLLLL.......................................LLLLL.....-- 20. --......LLLLL.......................................LLLLL......-- 21. --...............................................................-- 22. --.................................................................-- 23. --.............................---------.............................-- 24. ---...................------------ ------------...................--- 25. |.........------------- -------------.........| 26. |.........| |.........| 27. ----------- ----------- 28. ]]); 29. 30. local terrains = { ".", ".", ".", ".", "P", "L", "-", "T", "W", "Z" }; 31. local tidx = math.random(1, #terrains); 32. local toterr = terrains[tidx]; 33. if (toterr ~= "L") then 34. des.replace_terrain({ fromterrain = "L", toterrain = toterr }); 35. end 36. 37. des.feature("fountain", 05,02); 38. des.feature("fountain", 05,15); 39. des.feature("fountain", 69,02); 40. des.feature("fountain", 69,15); 41. 42. des.region(selection.area(01,01,73,16), "lit"); 43. 44. des.stair("up"); 45. des.stair("down"); 46. 47. des.non_diggable(); 48. 49. for i = 1,15 do 50. des.object(); 51. end 52. 53. for i = 1,6 do 54. des.trap(); 55. end 56. 57. for i = 1,28 do 58. des.monster(); 59. end