-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrooms.py
211 lines (165 loc) · 5.84 KB
/
rooms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
"""All rooms, connections, characters and items in Grey Dungeons."""
import adventurelib as adv
from adventurelib import Item
from character import *
####################################
# Default room settings
####################################
# By default, all rooms are unlocked, visible, and empty of items and entities.
adv.Room.locked = False
adv.Room.visible = True
adv.Room.items = adv.Bag()
adv.Room.entities = adv.Bag()
####################################
# Room variables
####################################
entrance = adv.Room(
"A small room lit by torches. Three wooden doors lead elsewhere, and a rockpile blocks the way out."
)
stool = adv.Room(
"A dark room that has 2 doors. A small, dusty, three-legged stool sits in the corner. It's quite boring."
)
clinton = adv.Room(
"A dimly-lit room that has 2 doors forward and a Hillary Clinton 2016 campaign poster. Better get outta here!"
)
chest = adv.Room("A dark room that has 1 door ahead and a locked chest in the corner.")
one_door = adv.Room(
"A dark room that has one door straight ahead. Maybe you shouldn't go in there..."
)
creepy = adv.Room(
"A dark room that has 2 doors. On the floor are eerie candles and some voodoo emblem drawn in a red liquid. Pretty sus..."
)
liquid = adv.Room(
"A dark room that has 1 door, excluding the way you came. It is filled with various puddles of what *looks* like water..."
)
soup_time = adv.Room(
"A surprisingly bright room that has 2 doors. It's lit up by a mysterious floating orb. Soup time! (- Weird Al Yankovic)"
)
organ = adv.Room(
"A dark room that has 1 other door. There's a pipe organ, which is eerily playing itself."
)
sword = adv.Room("A dark room that has 1 other door, on which hangs a huge sword.")
secret = adv.Room(
"A room with 2 doors. It's obvious that this used to be a secret place- there's a big sign saying 'This is a secret place' hanging on the door."
)
peach = adv.Room("A dark room that has 2 doors, and a rotting peach in the corner.")
hat = adv.Room("A dark room that has 2 doors. On the floor lies a random purple hat- ominous.")
statue = adv.Room(
"A dark and dusty room. It has a tall statue of a knight in the middle. Wait, did that thing just move?"
)
cake_lie = adv.Room(
"A dark room that has some cake on a table in the corner. Beside the cake is a scrap of paper saying 'the cake is a lie'. Huh."
)
ham = adv.Room(
"A dark room that has 2 doors. It smells like rotting ham, but on the floor is a piece of cake. Or is it *really* cake?"
)
death = adv.Room(
"A dark room that has 3 doors. On the first door, which is locked, there is a message saying 'Certain Death' written in blood. I wonder what's in there?"
)
gold = adv.Room("A semi-dark room that has 4 doors, each of which is made of solid gold.")
dark = adv.Room(
"A pitch-black room that's perfectly quiet. You can't tell what's lurking in the shadows..."
)
lava = adv.Room(
"A bright and uncomfortably warm room, lit up by streams of magma crossing the floor. Watch your step!"
)
portal = adv.Room(
"A dark room. In the center floats a mysterious purple portal. Where does it go?"
)
crypt = adv.Room(
"A dark passageway that slopes downward. In the walls are carved slots, filled with skeletons and corpses. Yipes!"
)
####################################
# Room connections
####################################
entrance.west = stool
entrance.north = clinton
entrance.east = chest
stool.north = one_door
stool.west = creepy
clinton.west = liquid
clinton.east = cake_lie
chest.north = dark
one_door.north = liquid
creepy.west = soup_time
soup_time.north = sword
soup_time.south = hat
sword.north = statue
liquid.west = ham
ham.north = gold
gold.east = dark
gold.north = death
gold.west = statue
dark.north = peach
dark.visible = False
death.east = peach
death.north = secret
secret.locked = True
peach.east = organ
organ.south = cake_lie
secret.east = lava
lava.north = portal
portal.north = crypt
####################################
# Items
####################################
entrance.items = adv.Bag([Item("torch", "lit torch")])
stool.items = adv.Bag([Item("stool", "small stool")])
clinton.items = adv.Bag([Item("campaign poster", "clinton 2016 poster", "poster")])
one_door.items = adv.Bag([Item("small dagger", "knife", "dagger")])
hat.items = adv.Bag([Item("purple hat", "hat")])
sword.items = adv.Bag([Item("broadsword", "sword")])
ham.items = adv.Bag([Item("suspicious cake", "sus cake")])
gold.items = adv.Bag([Item("small key", "little key")])
cake_lie.items = adv.Bag([Item("piece of cake", "cake slice", "cake")])
peach.items = adv.Bag([Item("rotting peach", "peach")])
dark.items = adv.Bag([Item("large key", "big key")])
secret.items = adv.Bag([Item("bar of gold", "gold bar", "gold ingot", "gold")])
soup_time.items = adv.Bag(
[
Item(
"mysterious floating orb",
"orb",
"mysterious orb",
"floating orb",
"soup time",
)
]
)
crypt.items = adv.Bag(
[
Item("skull", "old skull", "ancient skull"),
Item("femur", "legbone", "femur bone"),
]
)
####################################
# Entities
####################################
entrance.entities.add(
Character(
"skeleton",
"An old, crumbling skeleton of a not-quite-human.",
["clank", "creak", "crunch", "crack"],
)
)
liquid.entities.add(
Character(
"rat",
"A big rat that shambles about the room.",
["squeak", "squonk", "screech", "peep"],
)
)
statue.entities.add(
Character(
"statue",
"A statue of an armor-clad warrior. It holds a big spear in its right hand.",
["thud", "thunk", "creak", "crack"],
)
)
crypt.entities.add(
Character(
"zombie",
"An undead creature with glowing green eyes and a scimitar.",
["bleugh", "blargh", "auch", "throrp", "ugh"],
)
)