diff options
| author | Ben Friedland <ben174@gmail.com> | 2013-01-07 05:16:17 -0800 |
|---|---|---|
| committer | Ben Friedland <ben174@gmail.com> | 2013-01-07 05:16:17 -0800 |
| commit | bf461cbd055b2f1a4c5b092f5e5f44a4c64f1a03 (patch) | |
| tree | 303a64de519dd47aeff578004256bdfdc808e032 /weatbag/tiles/e2.py | |
| parent | cbe1bce30306133a02de664008ca552f3618302c (diff) | |
Orc battle at entrance of cave. Player now has hit_points.
Diffstat (limited to 'weatbag/tiles/e2.py')
| -rw-r--r-- | weatbag/tiles/e2.py | 8 |
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: |
