summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-04-20 23:22:27 +0300
committerGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-04-20 23:22:27 +0300
commitd6160c24f1d610a0dcf8051ece77b9c5b25e86a1 (patch)
tree3119326412262dc7427a479254177f82c145d25d
parent7f5815fd7a5366aa2abc3dc97ffe4512fb290b29 (diff)
leave restrictions for s2e1
-rw-r--r--weatbag/tiles/s1e1.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py
index ad98ad1..f44f4cd 100644
--- a/weatbag/tiles/s1e1.py
+++ b/weatbag/tiles/s1e1.py
@@ -22,7 +22,12 @@ class Tile:
pass
def leave(self, player, direction):
- if direction == 's':
+ restricted_directions = { 'w', 'e' }
+ if direction in restricted_directions:
+ print("The undergrowth in that direction "
+ "is impassable. You turn back.")
+ return False
+ elif direction == 's':
print("Bugs are the enemy and must be crushed!\n"
"So you decide to follow the bug upstream.")
input()