Source:NetHack 5.0.0/dat/water.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to water.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/water.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 endgame water.lua	$NHDT-Date: 1652196038 2022/05/10 15:20:38 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1 $
2. --	Copyright (c) 1989 by Jean-Christophe Collet
3. --	Copyright (c) 1992,1993 by Izchak Miller, David Cohrs,
4. --                      and Timo Hakulinen
5. -- NetHack may be freely redistributed.  See license for details.
6. --
7. des.level_init({ style = "solidfill", fg = " " });
8. 
9. des.level_flags("mazelevel", "noteleport", "hardfloor", "shortsighted")
10. des.message("You find yourself suspended in an air bubble surrounded by water.")
11. -- The player lands upon arrival to an air bubble
12. -- within the leftmost third of the level.  The
13. -- portal to the next level is randomly located in an air
14. -- bubble within the rightmost third of the level.
15. -- Bubbles are generated by special code in mkmaze.c for now.
16. des.map([[
17. WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
18. WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
19. WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
20. WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
21. WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
22. WWWWWWWWWWWWWWWWWWWWWWWWWWWW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WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
36. WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
37. ]]);
38. des.teleport_region({ region = {0,0,25,19} })
39. des.levregion({ type="portal", region={51,0,75,19}, name="astral" })
40. -- A fisherman's dream...
41. des.monster("giant eel")
42. des.monster("giant eel")
43. des.monster("giant eel")
44. des.monster("giant eel")
45. des.monster("giant eel")
46. des.monster("giant eel")
47. des.monster("giant eel")
48. des.monster("giant eel")
49. des.monster("electric eel")
50. des.monster("electric eel")
51. des.monster("electric eel")
52. des.monster("electric eel")
53. des.monster("electric eel")
54. des.monster("electric eel")
55. des.monster("electric eel")
56. des.monster("electric eel")
57. des.monster("kraken")
58. des.monster("kraken")
59. des.monster("kraken")
60. des.monster("kraken")
61. des.monster("kraken")
62. des.monster("kraken")
63. des.monster("kraken")
64. des.monster("kraken")
65. des.monster("kraken")
66. des.monster("shark")
67. des.monster("shark")
68. des.monster("shark")
69. des.monster("shark")
70. des.monster("piranha")
71. des.monster("piranha")
72. des.monster("piranha")
73. des.monster("piranha")
74. des.monster("jellyfish")
75. des.monster("jellyfish")
76. des.monster("jellyfish")
77. des.monster("jellyfish")
78. des.monster(";")
79. des.monster(";")
80. des.monster(";")
81. des.monster(";")
82. -- These guys feel like home here
83. des.monster({ id = "water elemental", peaceful = 0 })
84. des.monster({ id = "water elemental", peaceful = 0 })
85. des.monster({ id = "water elemental", peaceful = 0 })
86. des.monster({ id = "water elemental", peaceful = 0 })
87. des.monster({ id = "water elemental", peaceful = 0 })
88. des.monster({ id = "water elemental", peaceful = 0 })
89. des.monster({ id = "water elemental", peaceful = 0 })
90. des.monster({ id = "water elemental", peaceful = 0 })
91. des.monster({ id = "water elemental", peaceful = 0 })
92. des.monster({ id = "water elemental", peaceful = 0 })
93. des.monster({ id = "water elemental", peaceful = 0 })
94. des.monster({ id = "water elemental", peaceful = 0 })
95. des.monster({ id = "water elemental", peaceful = 0 })
96. des.monster({ id = "water elemental", peaceful = 0 })
97. des.monster({ id = "water elemental", peaceful = 0 })
98. des.monster({ id = "water elemental", peaceful = 0 })
99. des.monster({ id = "water elemental", peaceful = 0 })
100. des.monster({ id = "water elemental", peaceful = 0 })
101. des.monster({ id = "water elemental", peaceful = 0 })
102.