Mercurial > pyntnclick
changeset 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 | adbcf84b7b1f |
children | 4d032d09d599 |
files | gamelib/scenes/bridge.py gamelib/scenes/cryo.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/scenes/bridge.py Wed Jan 16 13:57:24 2013 +0200 +++ b/gamelib/scenes/bridge.py Wed Jan 16 13:58:02 2013 +0200 @@ -234,7 +234,7 @@ def interact_without(self): self.game.add_inventory_item('superconductor') - self.game.current_scene.things['bridge.massagechair_base'] \ + self.game.scenes['bridge'].things['bridge.massagechair_base'] \ .set_data('contains_superconductor', False) self.scene.remove_thing(self) return (Result("The superconductor module unclips easily."),
--- a/gamelib/scenes/cryo.py Wed Jan 16 13:57:24 2013 +0200 +++ b/gamelib/scenes/cryo.py Wed Jan 16 13:58:02 2013 +0200 @@ -421,7 +421,7 @@ def interact_without(self): self.game.add_inventory_item('titanium_leg') - self.game.current_scene.things['cryo.unit.1'].set_data( + self.game.scenes['cryo'].things['cryo.unit.1'].set_data( 'contains_titanium_leg', False) self.scene.remove_thing(self) return Result("The skeletal occupant of this cryo unit has an"