summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-28 21:16:31 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commitb47436bbeb671c409bbe7d795fcf7294b8779581 (patch)
tree7fdcab9cf2f2792f9307976b979f0bf7de613eb3 /weatbag
parent1b0c626c3659573edab6a5f97d9fc251332b7bd5 (diff)
added leave restriction in n2
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/weatbag/tiles/n2.py b/weatbag/tiles/n2.py
index 99ed0af..0617c02 100644
--- a/weatbag/tiles/n2.py
+++ b/weatbag/tiles/n2.py
@@ -15,8 +15,12 @@ class Tile:
def leave(self, player, direction):
if direction=='n' and not player.has('flaming torch'):
print("You can't explore the cave without being able to see. "
- "You'll need that stalwart friend of the adventurer, "
- "the flaming torch.")
+ "You'll need that stalwart friend of the adventurer, "
+ "the flaming torch.")
+ return False
+ elif direction == 'w':
+ print("The undergrowth in that direction is impassable. "
+ "You turn back.")
return False
else:
return True