From bf461cbd055b2f1a4c5b092f5e5f44a4c64f1a03 Mon Sep 17 00:00:00 2001 From: Ben Friedland Date: Mon, 7 Jan 2013 05:16:17 -0800 Subject: Orc battle at entrance of cave. Player now has hit_points. --- weatbag/tiles/e2.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'weatbag/tiles/e2.py') 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: -- cgit v1.3