From d5e0ae534a00b6f5439c7a427de1bb060370e05c Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 24 Apr 2013 22:55:52 +0100 Subject: Remove unnecessary part from if/elif statement --- weatbag/tiles/n2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'weatbag') 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.") -- cgit v1.3