From dc0b9a548f9a78f3beeb5989f0682b0a819b5594 Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sat, 20 Apr 2013 01:27:24 +0300 Subject: Fixed leave bug in s1e1 and modified output text. --- weatbag/tiles/s1e1.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py index 9f96e6b..74a0aa0 100644 --- a/weatbag/tiles/s1e1.py +++ b/weatbag/tiles/s1e1.py @@ -11,11 +11,19 @@ class Tile: "It runs from South to North.") if self.contents['bug'] > 0: - print("You see a huge ugly bug rush past you, " + print("You see a huge, ugly bug rush past you, " "following the river south.") self.contents['bug'] -= 1 else: - print("You remember this is where you saw that bug going south") + print("You remember this is where you saw that bug going south.") def action(self, player, do): pass + + def leave(self, player, direction): + if direction == 's': + print("Bugs are the enemy and must be crushed!" + "So you decide to follow the bug upstream.") + return True + else: + return True -- cgit v1.3