From 9e4183cc1cdc9f5468410609aeab62fb5b8e21c4 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 15 May 2013 02:43:36 +0300 Subject: added elif in action in case the player tries to take more cream (n5w5) --- weatbag/tiles/n5w5.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index 98f720c..5d6bc5a 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -24,10 +24,13 @@ class Tile: def action(self, player, do): if do[0]=="tom" and self.contents["cream"]: - print("That's correct. Now you can have some cream!\n") + print("That's correct. Now you can have some cream! " + "There... already in your bag!\n") self.contents["cream"] -= 1 player.give("cream") self.challenge = True + elif do[0] in words.take and do[1]=="cream": + print("Don't be greedy, you have all the cream you're gonna need.") else: print("I don't understand.\n") -- cgit v1.3