summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-05-15 02:43:36 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-05-15 02:43:36 +0300
commit9e4183cc1cdc9f5468410609aeab62fb5b8e21c4 (patch)
treee5b1c95f5e4aee4ed7140c310da55d7eead17a34
parentd15f1f16d4c5ae50c5e0743777b14f0d6da973cc (diff)
added elif in action in case the player tries to take more cream (n5w5)
-rw-r--r--weatbag/tiles/n5w5.py5
1 files changed, 4 insertions, 1 deletions
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")