diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-15 02:52:47 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-15 02:52:47 +0300 |
| commit | ffcfa7a693ced1a1d1b7387d31970559ed1842a7 (patch) | |
| tree | 4c25b1500c337b2d0b247e11b9d192a859211b3e /weatbag | |
| parent | 9e4183cc1cdc9f5468410609aeab62fb5b8e21c4 (diff) | |
leave function for n5w5
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/n5w5.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index 5d6bc5a..8d7b4b5 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -30,10 +30,18 @@ class Tile: player.give("cream") self.challenge = True elif do[0] in words.take and do[1]=="cream": - print("Don't be greedy, you have all the cream you're gonna need.") + print("Don't be greedy, you have all the cream you're gonna " + "need.\n") else: print("I don't understand.\n") - - -#sandy claws + def leave(self, player, direction): + if direction in ("n", "e"): + print("It's the open sea. You can't go anywhere near by " + "swimming.\n") + return False + elif direction == "s": + print("A bunch of pine trees...") + return True + else: + return True |
