blob: 74a0aa0e50dd7958fe57db0e027b2b37e4cd81bf (
plain)
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
|
from weatbag import words
import weatbag
class Tile:
def __init__(self):
self.contents = {'bug': 1}
pass
def describe(self):
print("There is a stream here.\n"
"It runs from South to North.")
if self.contents['bug'] > 0:
print("You see a huge, ugly bug rush past you, "
"following the river south.")
self.contents['bug'] -= 1
else:
print("You remember this is where you saw that bug going south.")
def action(self, player, do):
pass
def leave(self, player, direction):
if direction == 's':
print("Bugs are the enemy and must be crushed!"
"So you decide to follow the bug upstream.")
return True
else:
return True
|