From 7dca2041d3ee309dc86bd9b0d84d5e470d83eedb Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 04:59:20 +0300 Subject: added leave function for n --- weatbag/tiles/n3w2.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/weatbag/tiles/n3w2.py b/weatbag/tiles/n3w2.py index 5c0add3..989cb6c 100644 --- a/weatbag/tiles/n3w2.py +++ b/weatbag/tiles/n3w2.py @@ -39,11 +39,15 @@ class Tile: def leave(self, player, direction): - if direction=='e'and not self.give_catfood: + if direction == 'e'and not self.give_catfood: print("\nYou can't swim, remember the electric eels? You need a " "transport to go across.") return False - return True + if direction == 'n': + print("Nothing to do there.\n") + return False + else: + return True #two catfoods! test_items = ['catfood','catfood'] -- cgit v1.3