summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n3.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-01-10 16:45:18 +0000
committerThomas Kluyver <takowl@gmail.com>2013-01-10 16:45:18 +0000
commitead0301daaa6f07d9fc740050019bf204543f0ea (patch)
tree0206475cd0c8fa0ce88572d82e776db21630be57 /weatbag/tiles/n3.py
parent1da208f02a091c1dc9a9912d7066805a445d09bd (diff)
Allow custom message when player attempts to move to nonexistent tile.
Closes gh-7
Diffstat (limited to 'weatbag/tiles/n3.py')
-rw-r--r--weatbag/tiles/n3.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/weatbag/tiles/n3.py b/weatbag/tiles/n3.py
index 7591110..125898b 100644
--- a/weatbag/tiles/n3.py
+++ b/weatbag/tiles/n3.py
@@ -51,13 +51,9 @@ class Tile:
print("You manage to flee!")
return True
- if direction=='s':
- return True
- if direction=='n':
- return True
+ return True
- print("There is no path leading in that direction.")
- return False
+ no_path_msg = "There is no path leading in that direction."
def action(self, player, do):
if do[0] == "flee":