Source:NetHack 5.0.0/dat/Hea-strt.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to Hea-strt.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/Hea-strt.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 Healer Hea-strt.lua	$NHDT-Date: 1652196004 2022/05/10 15:20:04 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.2 $
2. --	Copyright (c) 1989 by Jean-Christophe Collet
3. --	Copyright (c) 1991, 1993 by M. Stephenson, P. Winner
4. -- NetHack may be freely redistributed.  See license for details.
5. --
6. --
7. --	The "start" level for the quest.
8. --
9. --	Here you meet your (besieged) class leader, Hippocrates
10. --	and receive your quest assignment.
11. --
12. des.level_init({ style = "solidfill", fg = " " });
13. 
14. des.level_flags("mazelevel", "noteleport", "hardfloor")
15. 
16. des.map([[
17. PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
18. PPPP........PPPP.....PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP.P..PPPPP......PPPPPPPP
19. PPP..........PPPP...PPPPP.........................PPPP..PPPPP........PPPPPPP
20. PP............PPPPPPPP..............................PPP...PPPP......PPPPPPPP
21. P.....PPPPPPPPPPPPPPP................................PPPPPPPPPPPPPPPPPPPPPPP
22. PPPP....PPPPPPPPPPPP...................................PPPPP.PPPPPPPPPPPPPPP
23. PPPP........PPPPP.........-----------------------........PP...PPPPPPP.....PP
24. PPP............PPPPP....--|.|......S..........S.|--.....PPPP.PPPPPPP.......P
25. PPPP..........PPPPP.....|.S.|......-----------|S|.|......PPPPPP.PPP.......PP
26. PPPPPP......PPPPPP......|.|.|......|...|......|.|.|.....PPPPPP...PP.......PP
27. PPPPPPPPPPPPPPPPPPP.....+.|.|......S.\.S......|.|.+......PPPPPP.PPPP.......P
28. PPP...PPPPP...PPPP......|.|.|......|...|......|.|.|.......PPPPPPPPPPP.....PP
29. PP.....PPP.....PPP......|.|S|-----------......|.S.|......PPPPPPPPPPPPPPPPPPP
30. PPP..PPPPP...PPPP.......--|.S..........S......|.|--.....PPPPPPPPP....PPPPPPP
31. PPPPPPPPPPPPPPPP..........-----------------------..........PPPPP..........PP
32. PPPPPPPPPPPPPPPPP........................................PPPPPP............P
33. PPP.............PPPP...................................PPP..PPPP..........PP
34. PP...............PPPPP................................PPPP...PPPP........PPP
35. PPP.............PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP....PPPPPP
36. PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
37. ]]);
38. 
39. des.replace_terrain({ region={01,01, 74,18}, fromterrain="P", toterrain=".", chance=10 })
40. 
41. -- Dungeon Description
42. des.region(selection.area(00,00,75,19), "lit")
43. -- Stairs
44. des.stair("down", 37,9)
45. -- Portal arrival point
46. des.levregion({ region = {04,12,04,12}, type="branch" })
47. -- altar for the Temple
48. des.altar({ x=32,y=09,align="neutral",type="altar" })
49. -- Doors
50. des.door("locked",24,10)
51. des.door("closed",26,08)
52. des.door("closed",27,12)
53. des.door("locked",28,13)
54. des.door("closed",35,07)
55. des.door("locked",35,10)
56. des.door("locked",39,10)
57. des.door("closed",39,13)
58. des.door("locked",46,07)
59. des.door("closed",47,08)
60. des.door("closed",48,12)
61. des.door("locked",50,10)
62. -- Hippocrates
63. des.monster({ id = "Hippocrates", coord = {37, 10}, inventory = function()
64.    des.object({ id = "silver dagger", spe = 5 });
65. end })
66. -- The treasure of Hippocrates
67. des.object("chest", 37, 10)
68. -- intern guards for the audience chamber
69. des.monster("attendant", 29, 08)
70. des.monster("attendant", 29, 09)
71. des.monster("attendant", 29, 10)
72. des.monster("attendant", 29, 11)
73. des.monster("attendant", 40, 09)
74. des.monster("attendant", 40, 10)
75. des.monster("attendant", 40, 11)
76. des.monster("attendant", 40, 13)
77. -- Non diggable walls
78. des.non_diggable(selection.area(00,00,75,19))
79. -- Random traps
80. des.trap()
81. des.trap()
82. des.trap()
83. des.trap()
84. des.trap()
85. des.trap()
86. -- Monsters on siege duty.
87. des.monster("rabid rat")
88. des.monster("rabid rat")
89. des.monster("rabid rat")
90. des.monster("rabid rat")
91. des.monster("rabid rat")
92. des.monster("rabid rat")
93. des.monster("rabid rat")
94. des.monster("rabid rat")
95. des.monster("rabid rat")
96. des.monster("rabid rat")
97. des.monster("giant eel")
98. des.monster("shark")
99. des.monster(";")
100. des.monster({ class = "D", peaceful=0 })
101. des.monster({ class = "D", peaceful=0 })
102. des.monster({ class = "D", peaceful=0 })
103. des.monster({ class = "D", peaceful=0 })
104. des.monster({ class = "D", peaceful=0 })
105. des.monster({ class = "S", peaceful=0 })
106. des.monster({ class = "S", peaceful=0 })
107. des.monster({ class = "S", peaceful=0 })
108. des.monster({ class = "S", peaceful=0 })
109. des.monster({ class = "S", peaceful=0 })