diff options
| author | Julian Irwin <julian.irwin@gmail.com> | 2013-01-27 13:07:46 -0500 |
|---|---|---|
| committer | Julian Irwin <julian.irwin@gmail.com> | 2013-01-27 13:07:46 -0500 |
| commit | fb2bfc0966aac9833a37e44564a35a3c7631dc6f (patch) | |
| tree | ecb3abeb12e3f33e7b30d41a5b4d0cb64c86f7dc | |
| parent | 1347f437e66a18a340abc3bfe487cd42b5f7f9c8 (diff) | |
Made changes recommended by takluyver
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | weatbag/tiles/.s3.py.swp | bin | 12288 -> 0 bytes | |||
| -rw-r--r-- | weatbag/tiles/s3.py | 23 |
3 files changed, 14 insertions, 10 deletions
@@ -35,3 +35,4 @@ nosetests.xml .mr.developer.cfg .project .pydevproject + diff --git a/weatbag/tiles/.s3.py.swp b/weatbag/tiles/.s3.py.swp Binary files differdeleted file mode 100644 index 8438c10..0000000 --- a/weatbag/tiles/.s3.py.swp +++ /dev/null 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.") |
