From b47436bbeb671c409bbe7d795fcf7294b8779581 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Sun, 28 Apr 2013 21:16:31 +0300 Subject: added leave restriction in n2 --- weatbag/tiles/n2.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'weatbag/tiles/n2.py') 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 -- cgit v1.3 From 70cfe08bb857e4b4e6c37541217ef51fae48af74 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 29 Apr 2013 00:53:58 +0300 Subject: removed leave restrictions from n2 --- weatbag/tiles/n2.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'weatbag/tiles/n2.py') diff --git a/weatbag/tiles/n2.py b/weatbag/tiles/n2.py index 0617c02..7ae7b81 100644 --- a/weatbag/tiles/n2.py +++ b/weatbag/tiles/n2.py @@ -18,10 +18,6 @@ class Tile: "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 -- cgit v1.3