Source:NetHack 5.0.0/dat/Ran-loca.lua
Jump to navigation
Jump to search
Below is the full text to Ran-loca.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/Ran-loca.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 Ranger Ran-loca.lua $NHDT-Date: 1652196010 2022/05/10 15:20:10 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1 $ 2. -- Copyright (c) 1989 by Jean-Christophe Collet 3. -- Copyright (c) 1991 by M. Stephenson 4. -- NetHack may be freely redistributed. See license for details. 5. -- 6. des.level_init({ style = "solidfill", fg = " " }); 7. 8. des.level_flags("mazelevel", "hardfloor") 9. --1234567890123456789012345678901234567890123456789012345678901234567890 10. des.map([[ 11. ....... ......... ....... 12. ................... ................... 13. .... ....... ....... .... 14. ... ..... . ..... . ..... ... 15. . .......... ..... ........... ..... .......... . 16. . .. ..... .......... ..... .......... ..... .. . 17. . . . ..... . ..... . . . 18. . . ..... ............. ..... . . 19. . . ................ ....... ................ . . 20. . . ..... ....... ..... . . 21. . . . ...... ...... . . . 22. . . ........... ......... ........... . . 23. . . .......... .......... . . 24. . .. ..... . ..... . ..... .. . 25. . .......... ..... ........... ..... .......... . 26. . ..... .......... ..... .......... ..... . 27. . . ..... . ..... . . 28. ... ....... ....... ....... ... 29. .............. ............. .............. 30. ....... ....... ....... ....... ....... 31. ]]); 32. -- Dungeon Description 33. des.region(selection.area(00,00,54,19), "lit") 34. -- Stairs 35. des.stair("up", 25,05) 36. des.stair("down", 27,18) 37. -- Non diggable walls 38. des.non_diggable(selection.area(00,00,54,19)) 39. -- Objects 40. des.object() 41. des.object() 42. des.object() 43. des.object() 44. des.object() 45. des.object() 46. des.object() 47. des.object() 48. -- Random traps 49. des.trap("spiked pit") 50. des.trap("spiked pit") 51. des.trap("teleport") 52. des.trap("teleport") 53. des.trap("arrow") 54. des.trap("arrow") 55. -- Random monsters. 56. des.monster({ id = "wumpus", x=27, y=18, peaceful=0, asleep=1 }) 57. des.monster({ id = "giant bat", peaceful=0 }) 58. des.monster({ id = "giant bat", peaceful=0 }) 59. des.monster({ id = "giant bat", peaceful=0 }) 60. des.monster({ id = "giant bat", peaceful=0 }) 61. des.monster({ id = "forest centaur", peaceful=0 }) 62. des.monster({ id = "forest centaur", peaceful=0 }) 63. des.monster({ id = "forest centaur", peaceful=0 }) 64. des.monster({ id = "forest centaur", peaceful=0 }) 65. des.monster({ id = "mountain centaur", peaceful=0 }) 66. des.monster({ id = "mountain centaur", peaceful=0 }) 67. des.monster({ id = "mountain centaur", peaceful=0 }) 68. des.monster({ id = "mountain centaur", peaceful=0 }) 69. des.monster({ id = "mountain centaur", peaceful=0 }) 70. des.monster({ id = "mountain centaur", peaceful=0 }) 71. des.monster({ id = "mountain centaur", peaceful=0 }) 72. des.monster({ id = "mountain centaur", peaceful=0 }) 73. des.monster({ id = "scorpion", peaceful=0 }) 74. des.monster({ id = "scorpion", peaceful=0 }) 75. des.monster({ id = "scorpion", peaceful=0 }) 76. des.monster({ id = "scorpion", peaceful=0 }) 77. des.monster({ class = "s", peaceful=0 }) 78. des.monster({ class = "s", peaceful=0 }) 79.