diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 01:23:33 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:18 +0300 |
| commit | 42c316ccd1275eeecf9a66317b43acf6cc0b3cc8 (patch) | |
| tree | d078452d0aeb04b4e2cab91903716573f4514712 /weatbag/tiles/n2w5.py | |
| parent | a74e3d70491fb320448a8a5b85bd6dce8f9f8b36 (diff) | |
fixed describe and item transfer on n2w5
Diffstat (limited to 'weatbag/tiles/n2w5.py')
| -rw-r--r-- | weatbag/tiles/n2w5.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weatbag/tiles/n2w5.py b/weatbag/tiles/n2w5.py index 85ed1ff..12ae7d2 100644 --- a/weatbag/tiles/n2w5.py +++ b/weatbag/tiles/n2w5.py @@ -6,15 +6,16 @@ class Tile: self.contents = {'catfood': 2} def describe(self): - if self.contents['catfood']: + if self.contents['catfood']>0: print("You look around and you see a shelf with catfood cans.\n" "I don't know about you, but a catfood can is always handy!\n" "Never know when you'll need to feed a kitty!\n") + else: + print("You see an empty self.") def action(self, player, do): if (do[0] in words.take) and ('catfood' in do): self.take_catfood(player) - self.contents['catfood'] -= 1 else: print("Sorry, I don't understand.\n") |
