diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-23 21:49:08 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:17 +0300 |
| commit | ef1f44ea2d3818d325bb56e93c70beca27746b92 (patch) | |
| tree | 7218a30eb0c9b5b8e7f106b086c8bfdbce8a1bc7 /weatbag/tiles | |
| parent | b4d052c783b870989832af782e8086304651b157 (diff) | |
small changes / added a comment
Diffstat (limited to 'weatbag/tiles')
| -rw-r--r-- | weatbag/tiles/n3w2.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/weatbag/tiles/n3w2.py b/weatbag/tiles/n3w2.py index 3627713..3ff014d 100644 --- a/weatbag/tiles/n3w2.py +++ b/weatbag/tiles/n3w2.py @@ -7,18 +7,23 @@ class Tile: def describe(self): if not self.give_catfood: - print("You are at the beach and there is an old man with an enormous " - "beard that is geting his little boat ready to go across to the " - "mainland.\nNaturally you are asking him to take you in his " - "boat.\nThe old man replies:\nOf course I can take you with me my " - "dear adventurer but first I need some catfood so I can feed the " - "kitties across in the mainland!") + print("You are at the beach and there is an old man with an " + "enormous beard that is getting his little boat ready to go " + "across to the mainland.\nNaturally, you are asking him to " + "take you in his boat.\nThe old man replies:\nOf course I " + "can take you with me, my dear adventurer but first I need " + "some catfood so I can feed the kitties across in the " + "mainland!") else: print("There's the old fisherman with his boat, he can take you " "across if you like!") def action(self, player, do): if (do[0] in words.use or do[0] in words.give) and do[1]=='catfood': + +# I only added words.use because player might +# use the word "use" insteed of "give". + if player.has('catfood'): player.take('catfood') print("Great! Now we can sail!") @@ -30,7 +35,7 @@ class Tile: print("Sorry, I don't understand.") def leave(self, player, direction): - if direction=='e': + if direction=='e'and not self.give_catfood: print("You can't swim, remember the electric eels? You need a " "transport to go across.") return False |
