Source:NetHack 5.0.0/dat/Bar-loca.lua
Jump to navigation
Jump to search
Below is the full text to Bar-loca.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/Bar-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 Barbarian Bar-loca.lua $NHDT-Date: 1652196000 2022/05/10 15:20:00 $ $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. 10. des.map([[ 11. ..........PPP......................................... 12. ...........PP.......................................... ....... 13. ..........PP...........-----..........------------------ .......... 14. ...........PP..........+...|..........|....S...........|.. ............ 15. ..........PPP..........|...|..........|-----...........|... ............. 16. ...........PPP.........-----..........+....+...........|... ............. 17. ..........PPPPPPPPP...................+....+...........S................. 18. ........PPPPPPPPPPPPP.........-----...|-----...........|................ 19. ......PPPPPPPPPPPPPP..P.......+...|...|....S...........| ... 20. .....PPPPPPP......P..PPPP.....|...|...------------------.. ... 21. ....PPPPPPP.........PPPPPP....-----........................ ........ 22. ...PPPPPPP..........PPPPPPP.................................. .......... 23. ....PPPPPPP........PPPPPPP.................................... .......... 24. .....PPPPP........PPPPPPP.........-----........................ ........ 25. ......PPP..PPPPPPPPPPPP...........+...|......................... ..... 26. ..........PPPPPPPPPPP.............|...|......................... .... 27. ..........PPPPPPPPP...............-----......................... . 28. ..............PPP................................................. 29. ...............PP.................................................... 30. ................PPP................................................... 31. ]]); 32. -- Dungeon Description 33. des.region(selection.area(00,00,75,19), "lit") 34. des.region(selection.area(24,03,26,04), "unlit") 35. des.region(selection.area(31,08,33,09), "unlit") 36. des.region(selection.area(35,14,37,15), "unlit") 37. des.region(selection.area(39,03,54,08), "lit") 38. des.region(selection.area(56,00,75,08), "unlit") 39. des.region(selection.area(64,09,75,16), "unlit") 40. -- Doors 41. des.door("open",23,03) 42. des.door("open",30,08) 43. des.door("open",34,14) 44. des.door("locked",38,05) 45. des.door("locked",38,06) 46. des.door("closed",43,03) 47. des.door("closed",43,05) 48. des.door("closed",43,06) 49. des.door("closed",43,08) 50. des.door("locked",55,06) 51. -- Stairs 52. des.stair("up", 05,02) 53. des.stair("down", 70,13) 54. -- Objects 55. des.object({ x = 42, y = 03 }) 56. des.object({ x = 42, y = 03 }) 57. des.object({ x = 42, y = 03 }) 58. des.object({ x = 41, y = 03 }) 59. des.object({ x = 41, y = 03 }) 60. des.object({ x = 41, y = 03 }) 61. des.object({ x = 41, y = 03 }) 62. des.object({ x = 41, y = 08 }) 63. des.object({ x = 41, y = 08 }) 64. des.object({ x = 42, y = 08 }) 65. des.object({ x = 42, y = 08 }) 66. des.object({ x = 42, y = 08 }) 67. des.object({ x = 71, y = 13 }) 68. des.object({ x = 71, y = 13 }) 69. des.object({ x = 71, y = 13 }) 70. -- Random traps 71. des.trap("spiked pit",10,13) 72. des.trap("spiked pit",21,07) 73. des.trap("spiked pit",67,08) 74. des.trap("spiked pit",68,09) 75. des.trap() 76. des.trap() 77. des.trap() 78. des.trap() 79. -- Random monsters. 80. des.monster({ id = "ogre", x=12, y=09, peaceful=0 }) 81. des.monster({ id = "ogre", x=18, y=11, peaceful=0 }) 82. des.monster({ id = "ogre", x=45, y=05, peaceful=0 }) 83. des.monster({ id = "ogre", x=45, y=06, peaceful=0 }) 84. des.monster({ id = "ogre", x=47, y=05, peaceful=0 }) 85. des.monster({ id = "ogre", x=46, y=05, peaceful=0 }) 86. des.monster({ id = "ogre", x=56, y=03, peaceful=0 }) 87. des.monster({ id = "ogre", x=56, y=04, peaceful=0 }) 88. des.monster({ id = "ogre", x=56, y=05, peaceful=0 }) 89. des.monster({ id = "ogre", x=56, y=06, peaceful=0 }) 90. des.monster({ id = "ogre", x=57, y=03, peaceful=0 }) 91. des.monster({ id = "ogre", x=57, y=04, peaceful=0 }) 92. des.monster({ id = "ogre", x=57, y=05, peaceful=0 }) 93. des.monster({ id = "ogre", x=57, y=06, peaceful=0 }) 94. des.monster({ id = "ogre", peaceful=0 }) 95. des.monster({ id = "ogre", peaceful=0 }) 96. des.monster({ id = "ogre", peaceful=0 }) 97. des.monster({ class = "O", peaceful=0 }) 98. des.monster({ class = "T", peaceful=0 }) 99. des.monster({ id = "rock troll", x=46, y=06, peaceful=0 }) 100. des.monster({ id = "rock troll", x=47, y=06, peaceful=0 }) 101. des.monster({ id = "rock troll", x=56, y=07, peaceful=0 }) 102. des.monster({ id = "rock troll", x=57, y=07, peaceful=0 }) 103. des.monster({ id = "rock troll", x=70, y=13, peaceful=0 }) 104. des.monster({ id = "rock troll", peaceful=0 }) 105. des.monster({ id = "rock troll", peaceful=0 }) 106. des.monster({ class = "T", peaceful=0 }) 107.