diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-24 03:20:23 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:18 +0300 |
| commit | 829b5894b5b35e08e531fcd871bd8ac8648cfb45 (patch) | |
| tree | bb3810bd157068456644c49e7cd4653cb26d47d8 /weatbag/tiles | |
| parent | 6d838e3e4a4152c371bc06505907b8c1574dc01a (diff) | |
added leave function for w/s/n
Diffstat (limited to 'weatbag/tiles')
| -rw-r--r-- | weatbag/tiles/n2w5.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weatbag/tiles/n2w5.py b/weatbag/tiles/n2w5.py index e88f27c..7277343 100644 --- a/weatbag/tiles/n2w5.py +++ b/weatbag/tiles/n2w5.py @@ -15,7 +15,6 @@ class Tile: if (do[0] in words.take) and ('catfood' in do): self.take_catfood(player) self.contents['catfood'] -= 1 - else: print("Sorry, I don't understand.") @@ -25,3 +24,9 @@ class Tile: else: print("\nThere is nothing here.") + def leave(self, player, direction): + if direction == 'w'or direction == 's' or direction == 'n': + print("Area 51. No trespassing beyond this point.") + return False + else: + return True |
