diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-14 00:16:41 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-14 00:16:41 +0300 |
| commit | fdd1bdb4257b1fb63ba8b6a8d59d5497ce4f5752 (patch) | |
| tree | d0747eb8e68ff17ad044a3fa09b22d9355d2d3af | |
| parent | c6e475c6dbf568ab56f0f86a20f8f2e6138c0e9c (diff) | |
added leave function fot n4w7
| -rw-r--r-- | weatbag/tiles/n4w7.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/weatbag/tiles/n4w7.py b/weatbag/tiles/n4w7.py index 4735623..81afafb 100644 --- a/weatbag/tiles/n4w7.py +++ b/weatbag/tiles/n4w7.py @@ -32,5 +32,17 @@ class Tile: "hands! The kittens look sooooo pleased!") else: print("You'll need some mice and some cream.") - + + def leave(self, player, direction): + if direction == "s": + print("It's the open sea. You can't go anywhere near by " + "swimming.\n") + return False + elif direction == "w": + print("It's the open sea. You can't go anywhere near by " + "swimming.\n") + return False + else: + return True + test_items = ['mice', 'cream'] |
