diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-20 14:28:28 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-20 14:28:28 +0300 |
| commit | f9c0237d94d3ec43861c44c97427734785bf13c0 (patch) | |
| tree | da0ec0626944d94093ec2ac16bfbd62c9c405075 /weatbag/tiles | |
| parent | 1a44cdd9429511f31f61fb5dddbe8f66a59bc2be (diff) | |
elif added in case player tries to take cream before solving the riddle (n5w5)
Diffstat (limited to 'weatbag/tiles')
| -rw-r--r-- | weatbag/tiles/n5w5.py | 3 |
1 files changed, 3 insertions, 0 deletions
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") |
