summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")