summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-24 04:50:33 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commit3b7d60ec9a036301d48b7c9bd247905fcf06c9d4 (patch)
tree0a96c90028ad387ca722373ed71b047086dd0a65 /weatbag
parent17cbea2f24bcb5ab084ba0b70776490de29cb888 (diff)
added leave function for n and w
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n3w4.py10
1 files changed, 10 insertions, 0 deletions
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