From 3b7d60ec9a036301d48b7c9bd247905fcf06c9d4 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 24 Apr 2013 04:50:33 +0300 Subject: added leave function for n and w --- weatbag/tiles/n3w4.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/weatbag/tiles/n3w4.py b/weatbag/tiles/n3w4.py index fff19cf..2388ee3 100644 --- a/weatbag/tiles/n3w4.py +++ b/weatbag/tiles/n3w4.py @@ -7,3 +7,13 @@ class Tile: def action(self, player, do): print("\nSorry, I don't understand") + + def leave(self, player, direction): + if direction == "n": + print("No trespasing. Violators will vanish without a trace.\n") + return False + elif direction == "w": + print("No trespasing. Violators will vanish without a trace.\n") + return False + else: + return True -- cgit v1.3