summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-29 01:23:33 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commit42c316ccd1275eeecf9a66317b43acf6cc0b3cc8 (patch)
treed078452d0aeb04b4e2cab91903716573f4514712 /weatbag
parenta74e3d70491fb320448a8a5b85bd6dce8f9f8b36 (diff)
fixed describe and item transfer on n2w5
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n2w5.py5
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")