Mercurial > boomslang
comparison gamelib/scenes/engine.py @ 399:1cfcd82519b6
You have to duct tape the superconductor
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 28 Aug 2010 21:24:04 +0200 |
parents | 44459476aec6 |
children | 0fd5796a1562 |
comparison
equal
deleted
inserted
replaced
398:1555677d86f6 | 399:1cfcd82519b6 |
---|---|
194 self.set_data('present', False) | 194 self.set_data('present', False) |
195 self.state.add_inventory_item('superconductor_broken') | 195 self.state.add_inventory_item('superconductor_broken') |
196 return Result("With leverage, the burned-out superconductor snaps out.") | 196 return Result("With leverage, the burned-out superconductor snaps out.") |
197 | 197 |
198 def interact_with_superconductor(self, item): | 198 def interact_with_superconductor(self, item): |
199 if self.get_data('present'): | |
200 return Result("It might help to remove the broken superconductor first") | |
201 else: | |
202 return Result("You plug in the superconductor, and feel a humm " | |
203 "as things kick into life. " | |
204 "Unfortunately, it's the wrong size for the socket " | |
205 "and just falls out again when you let go.") | |
206 | |
207 def interact_with_taped_superconductor(self, item): | |
199 if not self.get_data('present'): | 208 if not self.get_data('present'): |
200 self.set_interact('fixed') | 209 self.set_interact('fixed') |
201 self.set_data('present', True) | 210 self.set_data('present', True) |
202 self.set_data('working', True) | 211 self.set_data('working', True) |
203 self.scene.set_data('engine online', True) | 212 self.scene.set_data('engine online', True) |