summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n3.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-04-30 10:15:21 -0700
committerThomas Kluyver <takowl@gmail.com>2013-04-30 10:15:21 -0700
commite8676fe2073467b093af0abc8ccb19443ed4ecb7 (patch)
treec25d9794e1b8c77d70c2862f07f197fc0c69f067 /weatbag/tiles/n3.py
parente3612c7544341abf9e84234d4bda5f65ce8ee47a (diff)
parent3d626b5229add94f08acc3ae3731566507fc2f7e (diff)
Merge pull request #22 from ratmonkey/island_rebased
Island area
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."