diff options
| author | Thomas Kluyver <takowl@gmail.com> | 2013-01-09 02:28:35 -0800 |
|---|---|---|
| committer | Thomas Kluyver <takowl@gmail.com> | 2013-01-09 02:28:35 -0800 |
| commit | 1da208f02a091c1dc9a9912d7066805a445d09bd (patch) | |
| tree | d99de9ea9b8d8073680f156395ee35022e37556a /weatbag/tiles/e2.py | |
| parent | 3400844980917bb3d59da322a3e33f55f81afe12 (diff) | |
| parent | 6d1a17c456b15841763b953a1427e8bd856f2263 (diff) | |
Merge pull request #4 from ben174/master
Add new n3 tile with 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: |
