From f9c0237d94d3ec43861c44c97427734785bf13c0 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Mon, 20 May 2013 14:28:28 +0300 Subject: elif added in case player tries to take cream before solving the riddle (n5w5) --- weatbag/tiles/n5w5.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index c6bc31a..eed7c1c 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -29,6 +29,9 @@ class Tile: self.contents["cream"] -= 1 player.give("cream") self.challenge = True + elif do[0] in words.take and "cream" in do and self.contents["cream"]: + print("No, it doesn't work this way. First you gotta answer my " + "question!") elif do[0] in words.take and "cream" in do: print("Don't be greedy, you have all the cream you're gonna " "need.\n") -- cgit v1.3