Mercurial > pyntnclick
comparison gamelib/scenes/bridge.py @ 745:b9504e6ecde1 pyntnclick
Make a couple of interactions less dependent on current_scene, so the 'mad clicker' test works
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Wed, 16 Jan 2013 13:58:02 +0200 |
parents | c77d6aa29bee |
children | 386475464202 |
comparison
equal
deleted
inserted
replaced
744:adbcf84b7b1f | 745:b9504e6ecde1 |
---|---|
232 | 232 |
233 INITIAL = 'superconductor' | 233 INITIAL = 'superconductor' |
234 | 234 |
235 def interact_without(self): | 235 def interact_without(self): |
236 self.game.add_inventory_item('superconductor') | 236 self.game.add_inventory_item('superconductor') |
237 self.game.current_scene.things['bridge.massagechair_base'] \ | 237 self.game.scenes['bridge'].things['bridge.massagechair_base'] \ |
238 .set_data('contains_superconductor', False) | 238 .set_data('contains_superconductor', False) |
239 self.scene.remove_thing(self) | 239 self.scene.remove_thing(self) |
240 return (Result("The superconductor module unclips easily."), | 240 return (Result("The superconductor module unclips easily."), |
241 make_jim_dialog(("Prisoner %s. That chair you've destroyed" | 241 make_jim_dialog(("Prisoner %s. That chair you've destroyed" |
242 " was property of the ship's captain. " | 242 " was property of the ship's captain. " |