summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
Diffstat (limited to 'weatbag')
-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()