From 6d838e3e4a4152c371bc06505907b8c1574dc01a Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 03:12:33 +0300 Subject: added leave function for S --- weatbag/tiles/n2w4.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'weatbag') diff --git a/weatbag/tiles/n2w4.py b/weatbag/tiles/n2w4.py index a427d5e..2e917ea 100644 --- a/weatbag/tiles/n2w4.py +++ b/weatbag/tiles/n2w4.py @@ -30,9 +30,13 @@ class Tile: print("\nSorry, I don't understand.") def leave(self, player, direction): - if direction=='w' and not self.opendoor: + if direction == 'w' and not self.opendoor: print("\nFirst you need to enter the hut.") return False + elif direction == 's': + print("Meeeeh, nothing of importance is going on there, try " + "another direction.") + return False else: return True -- cgit v1.3