From 6678da4fc07b3773aaac977d450b949b359a6d08 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 02:54:45 +0300 Subject: added leave function for S --- weatbag/tiles/n2w3.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'weatbag/tiles/n2w3.py') diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py index 3d1d1ad..6c82f13 100644 --- a/weatbag/tiles/n2w3.py +++ b/weatbag/tiles/n2w3.py @@ -10,4 +10,11 @@ class Tile: def action(self, player, do): print("\nSorry, I don't understand") - + + def leave(self, player, direction): + if direction == "s": + print("STAHP! Hammer Time!\n(Meaning you just can't go to that " + "direction yet. Sorry! :))\n") + return False + else: + return True -- cgit v1.3