diff options
| author | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:15:02 +0300 |
|---|---|---|
| committer | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:15:02 +0300 |
| commit | 7f5815fd7a5366aa2abc3dc97ffe4512fb290b29 (patch) | |
| tree | c8c2d10e4ebaaf58f618aa5616e098d814461f20 | |
| parent | 1c657f1c63776ecbc57b47ebe329cf10ccc8967d (diff) | |
leave restrictions for s2e1
| -rw-r--r-- | weatbag/tiles/s2e1.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/weatbag/tiles/s2e1.py b/weatbag/tiles/s2e1.py index 1abc1d1..868d9fc 100644 --- a/weatbag/tiles/s2e1.py +++ b/weatbag/tiles/s2e1.py @@ -19,3 +19,12 @@ class Tile: self.first_time = False input() print("It's not a bug, it's a feature!") + + def leave(self, player, direction): + restricted_directions = { 'w', 'e' } + if direction in restricted_directions: + print("The undergrowth in that direction " + "is impassable. You turn back.") + return False + else: + return True |
