diff options
| author | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:22:27 +0300 |
|---|---|---|
| committer | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:22:27 +0300 |
| commit | d6160c24f1d610a0dcf8051ece77b9c5b25e86a1 (patch) | |
| tree | 3119326412262dc7427a479254177f82c145d25d /weatbag | |
| parent | 7f5815fd7a5366aa2abc3dc97ffe4512fb290b29 (diff) | |
leave restrictions for s2e1
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/s1e1.py | 7 |
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() |
