summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/e2.py
diff options
context:
space:
mode:
Diffstat (limited to 'weatbag/tiles/e2.py')
-rw-r--r--weatbag/tiles/e2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/weatbag/tiles/e2.py b/weatbag/tiles/e2.py
index 2a8690b..ca66475 100644
--- a/weatbag/tiles/e2.py
+++ b/weatbag/tiles/e2.py
@@ -22,6 +22,14 @@ class Tile:
def action(self, player, do):
if do[0] == "guess" and self.contents['unlit torch']:
try:
+ if do[1] == "correctly":
+ print("You sly dog, you!")
+ print("The dwarf hands you a torch! "
+ "He then suddenly vanishes, leaving behind a pile of dust.")
+ self.contents['unlit torch'] -= 1
+ player.give('unlit torch')
+ return
+
guess = int(do[1])
self.guess_count += 1
if guess > self.lucky_number: