diff options
| author | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:31:48 +0300 |
|---|---|---|
| committer | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:31:48 +0300 |
| commit | 325e31b442f3e3cb7f984d26c030b4a6d87ff830 (patch) | |
| tree | c7f6fd84e3b90243b5599ff0d061278e8b2bf9bb | |
| parent | d6160c24f1d610a0dcf8051ece77b9c5b25e86a1 (diff) | |
leave restriction for s1
| -rw-r--r-- | weatbag/tiles/s1.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/weatbag/tiles/s1.py b/weatbag/tiles/s1.py index 556a3f3..d1354ec 100644 --- a/weatbag/tiles/s1.py +++ b/weatbag/tiles/s1.py @@ -6,3 +6,17 @@ class Tile: def action(self, player, do): # Nothing to do here yet. print("Sorry, I don't understand") + + def leave(self, player, direction): + restricted_directions = { 'e' } + + # I placed this restriction here to prevent + # early entrance to the bug quest + # which should be started by going South from e1 + if direction in restricted_directions: + print("The undergrowth in that direction " + "is impassable. You turn back.") + return False + else: + return True + |
