From c4b8a55485366711a97d23332b4b4e36f85d7198 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Tue, 7 May 2013 19:17:38 +0300 Subject: added one more leave restriction --- weatbag/tiles/n1w4.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'weatbag') diff --git a/weatbag/tiles/n1w4.py b/weatbag/tiles/n1w4.py index 13b288e..1fc522d 100644 --- a/weatbag/tiles/n1w4.py +++ b/weatbag/tiles/n1w4.py @@ -11,7 +11,7 @@ class Tile: def challenge(self): print("\n") - pass + pass def action(self, player, do): if not self.challenge_completed: @@ -21,8 +21,12 @@ class Tile: def leave(self, player, direction): if direction == "s": - print ("Oh dear Basdet! You can't go north, you will fall of the " + print("Oh dear Basdet! You can't go north, you will fall of the " "cliff!\n") return False + elif direction == "n": + print("It looks like the side of a wooden hut.\n" + "Since you don't walk though walls (yet) you can't go there.") + return False else: return True -- cgit v1.3