Source:NetHack 5.0.0/dat/oracle.lua

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to oracle.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/oracle.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 oracle oracle.lua	$NHDT-Date: 1652196033 2022/05/10 15:20:33 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1 $
2. -- Copyright (c) 2015 by Pasi Kallinen
3. -- NetHack may be freely redistributed.  See license for details.
4. --
5. -- Oracle level
6. des.level_flags("noflip");
7. 
8. des.room({ type = "ordinary", lit=1, x=3,y=3, xalign="center",yalign="center", w=11,h=9, contents = function()
9.               des.object({ id = "statue", x = 0, y = 0, montype = "C", historic = true });
10.               des.object({ id = "statue", x = 0, y = 8, montype = "C", historic = true });
11.               des.object({ id = "statue", x =10, y = 0, montype = "C", historic = true });
12.               des.object({ id = "statue", x =10, y = 8, montype = "C", historic = true });
13.               des.object({ id = "statue", x = 5, y = 1, montype = "C", historic = true });
14.               des.object({ id = "statue", x = 5, y = 7, montype = "C", historic = true });
15.               des.object({ id = "statue", x = 2, y = 4, montype = "C", historic = true });
16.               des.object({ id = "statue", x = 8, y = 4, montype = "C", historic = true });
17. 
18.               des.room({ type = "delphi", lit = 1, x=4,y=3, w=3,h=3, contents = function()
19.                             des.feature("fountain", 0, 1);
20.                             des.feature("fountain", 1, 0);
21.                             des.feature("fountain", 1, 2);
22.                             des.feature("fountain", 2, 1);
23.                             des.monster("Oracle", 1, 1);
24.                             des.door({ state="nodoor", wall="all" });
25.                          end
26.               });
27. 
28.               des.monster();
29.               des.monster();
30.            end
31. });
32. 
33. des.room({ contents = function()
34.                  des.stair("up");
35.                  des.object();
36.               end
37. });
38. 
39. des.room({ contents = function()
40.                  des.stair("down");
41.                  des.object();
42.                  des.trap();
43.                  des.monster();
44.                  des.monster();
45.               end
46. });
47. 
48. des.room({ contents = function()
49.                  des.object();
50.                  des.object();
51.                  des.monster();
52.               end
53. });
54. 
55. des.room({ contents = function()
56.                  des.object();
57.                  des.trap();
58.                  des.monster();
59.               end
60. });
61. 
62. des.room({ contents = function()
63.                  des.object();
64.                  des.trap();
65.                  des.monster();
66.               end
67. });
68. 
69. des.random_corridors();