summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-04-21 20:26:56 +0300
committerGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-04-21 20:26:56 +0300
commit5774fb83d9139831a5cf1fb0cc6ff3f475d3d9ff (patch)
treec7a1cb4d947da7013f383e0ad55195227409bfee
parent69cba96ca9d026467f3c98a1b8139ae0340e9669 (diff)
Changed They way I check for bug presence.
It's simpler and more readable now.
-rw-r--r--weatbag/tiles/s1e1.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py
index a29c2d2..854bedd 100644
--- a/weatbag/tiles/s1e1.py
+++ b/weatbag/tiles/s1e1.py
@@ -4,7 +4,7 @@ import weatbag
class Tile:
def __init__(self):
- self.contents = {'bug': 1}
+ self.bug_is_here = True
self.first_visit = True
self.hasnt_gone_south = True
pass
@@ -13,10 +13,10 @@ class Tile:
print("There is a stream here. "
"It runs from South to North.")
- if self.contents['bug'] > 0:
+ if self.bug_is_here:
print("You see a huge, ugly bug rush past you, "
"following the river South.")
- self.contents['bug'] -= 1
+ self.bug_is_here = False
else:
print("You remember this is where you saw that bug going South.")