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