summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-24 04:55:03 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commit7a555d01a6a0fbe517afdfcd523826749faab014 (patch)
tree060dff72fe2110cf981e921f65e5f27ba9b41236 /weatbag
parent3b7d60ec9a036301d48b7c9bd247905fcf06c9d4 (diff)
added leave function for n
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n3w3.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/weatbag/tiles/n3w3.py b/weatbag/tiles/n3w3.py
index 42bec81..8ccf76f 100644
--- a/weatbag/tiles/n3w3.py
+++ b/weatbag/tiles/n3w3.py
@@ -24,3 +24,10 @@ class Tile:
print("\nYou pick up the doorknob.")
else:
print("\nThere is nothing here.")
+
+ def leave(self, player, direction):
+ if direction == "n":
+ print("Oops. You can't go there. There is a rocky wall.\n")
+ return False
+ else:
+ return True