diff options
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/s1e1.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py index 86b4758..5dabe3c 100644 --- a/weatbag/tiles/s1e1.py +++ b/weatbag/tiles/s1e1.py @@ -5,6 +5,7 @@ class Tile: def __init__(self): self.contents = {'bug': 1} self.first_visit = True + self.hasnt_gone_south = True pass def describe(self): @@ -27,11 +28,12 @@ class Tile: print("The undergrowth in that direction " "is impassable. You turn back.") return False - elif direction == 's': + elif direction == 's' and hasnt_gone_south: print("Bugs are the enemy and must be crushed!\n" "So you decide to follow the bug upstream.") input() self.first_visit = False + self.hasnt_gone_south = False return True else: if self.first_visit: |
