summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n3.py
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-28 20:27:24 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commit6fa5120b4046a73867d793b9b8ba2fc0dba2adc2 (patch)
tree0c3f36e5e4311d36883f8daf3d2b28d0a7cd67f4 /weatbag/tiles/n3.py
parent7b0f5213239618f341c5700fec7b7aa4f13a690e (diff)
added leave for w
Diffstat (limited to 'weatbag/tiles/n3.py')
-rw-r--r--weatbag/tiles/n3.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/weatbag/tiles/n3.py b/weatbag/tiles/n3.py
index 7d78b84..f85dd42 100644
--- a/weatbag/tiles/n3.py
+++ b/weatbag/tiles/n3.py
@@ -42,7 +42,10 @@ class Tile:
print("You are %s" % (player.state_string()))
def leave(self, player, direction):
- if not self.enemy_dead:
+ if direction =='w':
+ print("Cave wall this way.")
+ return False
+ elif not self.enemy_dead:
if not random.choice((True,False)):
print("The orc blocks your way!")
self.enemy_swing(player)
@@ -50,7 +53,6 @@ class Tile:
else:
print("You manage to flee!")
return True
-
return True
no_path_msg = "There is no path leading in that direction."