Source:NetHack 5.0.0/dat/bigrm-8.lua
Jump to navigation
Jump to search
Below is the full text to bigrm-8.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/bigrm-8.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-8.lua $NHDT-Date: 1652196023 2022/05/10 15:20:23 $ $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"); 8. 9. des.map([[ 10. ---------------------------------------------- 11. |............................................--- 12. --.............................................--- 13. ---......................................FF.....--- 14. ---...................................FF........--- 15. ---................................FF...........--- 16. ---.............................FF..............--- 17. ---..........................FF.................--- 18. ---.......................FF....................--- 19. ---....................FF.......................--- 20. ---.................FF..........................--- 21. ---..............FF.............................--- 22. ---...........FF................................---- 23. ---........FF...................................--- 24. ---.....FF......................................--- 25. ---.............................................-- 26. ---............................................| 27. ---------------------------------------------- 28. ]]); 29. 30. if percent(40) then 31. local terrain = { "L", "}", "T", ".", "-", "C" }; 32. local tidx = math.random(1, #terrain); 33. des.replace_terrain({ region={00,00, 74,17}, fromterrain="F", toterrain=terrain[tidx] }); 34. end; 35. 36. des.region(selection.area(01,01,73,16), "lit"); 37. 38. des.stair("up"); 39. des.stair("down"); 40. 41. des.non_diggable(); 42. 43. for i = 1,15 do 44. des.object(); 45. end 46. 47. for i = 1,6 do 48. des.trap(); 49. end 50. 51. for i = 1,28 do 52. des.monster(); 53. end