From 829b5894b5b35e08e531fcd871bd8ac8648cfb45 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 03:20:23 +0300 Subject: added leave function for w/s/n --- weatbag/tiles/n2w5.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'weatbag') 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 -- cgit v1.3