From 42c316ccd1275eeecf9a66317b43acf6cc0b3cc8 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 29 Apr 2013 01:23:33 +0300 Subject: fixed describe and item transfer on n2w5 --- weatbag/tiles/n2w5.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'weatbag') 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") -- cgit v1.3