Source:NetHack 5.0.0/dat/asmodeus.lua
Jump to navigation
Jump to search
Below is the full text to asmodeus.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/asmodeus.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 gehennom asmodeus.lua $NHDT-Date: 1652196020 2022/05/10 15:20:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.2 $ 2. -- Copyright (c) 1989 by Jean-Christophe Collet 3. -- Copyright (c) 1992 by M. Stephenson and Izchak Miller 4. -- NetHack may be freely redistributed. See license for details. 5. -- 6. des.level_init({ style="mazegrid", bg ="-" }); 7. 8. des.level_flags("mazelevel") 9. 10. local tmpbounds = selection.match("-"); 11. local bnds = tmpbounds:bounds(); 12. local bounds2 = selection.fillrect(bnds.lx, bnds.ly + 1, bnds.hx - 2, bnds.hy - 1); 13. 14. -- First part 15. local asmo1 = des.map({ halign = "half-left", valign = "center", map = [[ 16. --------------------- 17. |.............|.....| 18. |.............S.....| 19. |---+------------...| 20. |.....|.........|-+-- 21. |..---|.........|.... 22. |..|..S.........|.... 23. |..|..|.........|.... 24. |..|..|.........|-+-- 25. |..|..-----------...| 26. |..S..........|.....| 27. --------------------- 28. ]], contents = function(rm) 29. -- Doors 30. des.door("closed",04,03) 31. des.door("locked",18,04) 32. des.door("closed",18,08) 33. -- 34. des.stair("down", 13,07) 35. -- Non diggable walls 36. des.non_diggable(selection.area(00,00,20,11)) 37. -- Entire main area 38. des.region(selection.area(01,01,20,10),"unlit") 39. -- The fellow in residence 40. des.monster("Asmodeus",12,07) 41. -- Some random weapons and armor. 42. des.object("[") 43. des.object("[") 44. des.object(")") 45. des.object(")") 46. des.object("*") 47. des.object("!") 48. des.object("!") 49. des.object("?") 50. des.object("?") 51. des.object("?") 52. -- Some traps. 53. des.trap("spiked pit", 05,02) 54. des.trap("fire", 08,06) 55. des.trap("sleep gas") 56. des.trap("anti magic") 57. des.trap("fire") 58. des.trap("magic") 59. des.trap("magic") 60. -- Random monsters. 61. des.monster("ghost",11,07) 62. des.monster("horned devil",10,05) 63. des.monster("L") 64. -- Some Vampires for good measure 65. des.monster("V") 66. des.monster("V") 67. des.monster("V") 68. end }); 69. 70. des.levregion({ region={01,00,6,20}, region_islev=1, exclude={6,1,70,16}, exclude_islev=1, type="stair-up" }); 71. 72. des.levregion({ region={01,00,6,20}, region_islev=1, exclude={6,1,70,16}, exclude_islev=1, type="branch" }); 73. des.teleport_region({ region = {01,00,6,20}, region_islev=1, exclude={6,1,70,16}, exclude_islev=1 }) 74. 75. -- Second part 76. local asmo2 = des.map({ halign = "half-right", valign = "center", map = [[ 77. --------------------------------- 78. ................................| 79. ................................+ 80. ................................| 81. --------------------------------- 82. ]], contents = function(rm) 83. des.mazewalk(32,02,"east") 84. -- Non diggable walls 85. des.non_diggable(selection.area(00,00,32,04)) 86. des.door("closed",32,02) 87. des.monster("&") 88. des.monster("&") 89. des.monster("&") 90. des.trap("anti magic") 91. des.trap("fire") 92. des.trap("magic") 93. end }); 94. 95. local protected = bounds2:negate() | asmo1 | asmo2; 96. hell_tweaks(protected);