diff options
| author | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-18 13:34:32 +0300 |
|---|---|---|
| committer | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-18 13:34:32 +0300 |
| commit | 9d8fa73a4fcec72f21c03de7adb77b7fa03a6c07 (patch) | |
| tree | 9f748ff1932daffe8252e72b663c21c4189cbfad /weatbag | |
| parent | 83b3f0784309db0b5548596e65cd5d48b494fda8 (diff) | |
Checks for challenge completion before complaining
about "take"
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/e2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weatbag/tiles/e2.py b/weatbag/tiles/e2.py index a71ef96..eb7a2e2 100644 --- a/weatbag/tiles/e2.py +++ b/weatbag/tiles/e2.py @@ -47,7 +47,7 @@ class Tile: player.give('unlit torch') except: print("Please try guessing a number, like 'guess 7'.") - elif (do[0] in words.take): + elif (do[0] in words.take) and (self.contents['unlit torch'] == 1): print("You can't have my prize, " "you have to guess the lucky number!") else: |
