From fdd1bdb4257b1fb63ba8b6a8d59d5497ce4f5752 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 14 May 2013 00:16:41 +0300 Subject: added leave function fot n4w7 --- weatbag/tiles/n4w7.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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'] -- cgit v1.3