Source:NetHack 5.0.0/dat/Val-loca.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to Val-loca.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/Val-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 Valkyrie Val-loca.lua	$NHDT-Date: 1652196017 2022/05/10 15:20:17 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.2 $
2. --	Copyright (c) 1989 by Jean-Christophe Collet
3. --	Copyright (c) 1991-2 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", "icedpools", "noflip")
9. 
10. des.level_init({ style="mines", fg=".", bg="I", smoothed=true, joined=false, lit=1, walled=false })
11. 
12. des.map([[
13. PPPPxxxx                      xxxxPPPPPx
14. PLPxxx                          xPPLLLPP
15. PPP    .......................    PPPLLP
16. xx   ............................   PPPP
17. x  ...............................  xxxx
18.   .................................   xx
19. ....................................   x
20.   ...................................   
21. x  ..................................  x
22. xx   ..............................   PP
23. xPPP  ..........................     PLP
24. xPLLP                             xxPLLP
25. xPPPPxx                         xxxxPPPP
26. ]]);
27. -- Dungeon Description
28. des.region(selection.area(00,00,39,12), "lit")
29. -- Stairs
30. des.stair("up", 48,14)
31. des.stair("down", 20,06)
32. -- Non diggable walls
33. des.non_diggable(selection.area(00,00,39,12))
34. -- Objects
35. des.object()
36. des.object()
37. des.object()
38. des.object()
39. des.object()
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. des.object()
49. des.object()
50. -- Random traps
51. des.trap("fire")
52. des.trap("fire")
53. des.trap("fire")
54. des.trap("fire")
55. des.trap()
56. des.trap()
57. -- Random monsters.
58. des.monster("fire ant")
59. des.monster("fire ant")
60. des.monster("fire ant")
61. des.monster("fire ant")
62. des.monster("fire ant")
63. des.monster("fire ant")
64. des.monster("fire ant")
65. des.monster("fire ant")
66. des.monster("fire ant")
67. des.monster("fire ant")
68. des.monster("fire ant")
69. des.monster("fire ant")
70. des.monster("fire ant")
71. des.monster("fire ant")
72. des.monster("fire ant")
73. des.monster("fire ant")
74. des.monster("fire ant")
75. des.monster("a")
76. des.monster({ class = "H", peaceful = 0 })
77. des.monster({ id = "fire giant", peaceful = 0 })
78. des.monster({ id = "fire giant", peaceful = 0 })
79. des.monster({ id = "fire giant", peaceful = 0 })
80. des.monster({ id = "fire giant", peaceful = 0 })
81. des.monster({ id = "fire giant", peaceful = 0 })
82. des.monster({ id = "fire giant", peaceful = 0 })
83. des.monster({ id = "fire giant", peaceful = 0 })
84. des.monster({ class = "H", peaceful = 0 })
85.