summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-04-24 22:55:52 +0100
committerThomas Kluyver <takowl@gmail.com>2013-04-24 22:55:52 +0100
commitd5e0ae534a00b6f5439c7a427de1bb060370e05c (patch)
treeb505600747f63c78fb553343fefa428f8ccb2088 /weatbag
parentd71114fa6e18b04d29fcf9eb3872428a89187913 (diff)
Remove unnecessary part from if/elif statement
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n2.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/weatbag/tiles/n2.py b/weatbag/tiles/n2.py
index 9f33a60..99ed0af 100644
--- a/weatbag/tiles/n2.py
+++ b/weatbag/tiles/n2.py
@@ -13,9 +13,7 @@ class Tile:
print("Someone has dropped a box of matches on the ground.")
def leave(self, player, direction):
- if direction=='n' and player.has('flaming torch'):
- return True
- elif direction=='n' and not player.has('flaming torch'):
+ 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.")