Mercurial > pyntnclick
comparison gamelib/scenes/machine.py @ 215:08f39251c6a5
Laser sound
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Thu, 26 Aug 2010 19:39:00 +0200 |
parents | 6a52752f4920 |
children | 326300c218a6 |
comparison
equal
deleted
inserted
replaced
214:035dceda9f85 | 215:08f39251c6a5 |
---|---|
61 elif self.get_data('cans_in_place') < 3: | 61 elif self.get_data('cans_in_place') < 3: |
62 return Result("You'll need more cans than that.") | 62 return Result("You'll need more cans than that.") |
63 else: | 63 else: |
64 self.set_data('cans_in_place', 0) | 64 self.set_data('cans_in_place', 0) |
65 self.state.add_inventory_item('tube_fragments') | 65 self.state.add_inventory_item('tube_fragments') |
66 return Result("With high-precision spitzensparken, the cans are welded into a replacement tube.") | 66 return Result("With high-precision spitzensparken, the cans are welded into a replacement tube.", |
67 soundfile='laser.ogg') | |
67 | 68 |
68 def interact_with_dented_can(self, item): | 69 def interact_with_dented_can(self, item): |
69 return self.interact_with_empty_can(item) | 70 return self.interact_with_empty_can(item) |
70 | 71 |
71 def interact_with_empty_can(self, item): | 72 def interact_with_empty_can(self, item): |