summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/s3.py
diff options
context:
space:
mode:
authorJulian Irwin <julian.irwin@gmail.com>2013-01-27 13:07:46 -0500
committerJulian Irwin <julian.irwin@gmail.com>2013-01-27 13:07:46 -0500
commitfb2bfc0966aac9833a37e44564a35a3c7631dc6f (patch)
treeecb3abeb12e3f33e7b30d41a5b4d0cb64c86f7dc /weatbag/tiles/s3.py
parent1347f437e66a18a340abc3bfe487cd42b5f7f9c8 (diff)
Made changes recommended by takluyver
Diffstat (limited to 'weatbag/tiles/s3.py')
-rw-r--r--weatbag/tiles/s3.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/weatbag/tiles/s3.py b/weatbag/tiles/s3.py
index abd2a98..657f4a3 100644
--- a/weatbag/tiles/s3.py
+++ b/weatbag/tiles/s3.py
@@ -4,24 +4,24 @@ class Tile:
def __init__(self):
self.short_man_here = True
self.pants_on_fire = False
- self.talk_or_fight = None
def describe(self):
- print( "You reach the top of the hill and look around the rock "
- "formations. You find nothing but dust, a mud puddle, and"
- "withered shrubs.\n")
+ print( "You reach the top of the hill, pass through the arch "
+ "and look around the rock "
+ "formations. You find nothing but dust, a mud puddle, and "
+ "withered shrubs.")
if self.short_man_here:
self.pants_on_fire = True
print( "Just as you are returning to the path, a ball of fire "
"hurtles through the air and explodes at your feet, setting "
"one of your pant legs on fire. You hear high pitched cackling and "
- "snorting.\n")
+ "snorting.")
else:
print( "You see the charred ground, "
"reminding you of your encounter with the short man who set "
"your pants on fire. That was a close one. There is a steep "
"path leading down the hill to the North. To the south, the "
- "hiltop path continues.\n")
+ "hiltop path continues.")
def action(self, player, do):
@@ -30,8 +30,8 @@ class Tile:
elif self.short_man_here:
self.action_short_man(player, do)
-
- elif self.short_man_gone:
+
+ else:
print("I'm sorry, I don't understand.")
def leave(self, player, direction):
@@ -39,7 +39,7 @@ class Tile:
print("Running now will only feed the fire!")
return False
elif self.short_man_here:
- print("This fellow is dangerous. I better not turn my back on him.")
+ print("This fellow is dangerous. I'd better not turn my back on him.")
return False
else:
return True
@@ -69,17 +69,20 @@ class Tile:
def action_short_man(self, player, do):
if do[0] in words.attack:
+ self.short_man_here = False
print("Not one to be played around with, you charge the man. His amusement "
"quickly turns to surprise and then fear as your size and "
"determination become apparent. The man stumbles backwards and emits "
"a yelp. Just before he hits the groud there is a dry popping noise "
"a flash of light and the man is gone. ")
elif do[0] in words.talk:
+ self.short_man_here = False
print("\"What the hell was that?\" you growl.\n"
"The man jumps deftly onto a boulder, looks at you over his "
"shoulder for just a moment, and then jumps out of sight. "
"You quickly climb after him, but he has somehow disappeared.")
- self.short_man_here = False
+ else:
+ print("I'm sorry, I don't understand.")