Mercurial > pyntnclick
comparison gamelib/scenes/cryo.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 | d6ded808cc33 |
children | 386475464202 |
comparison
equal
deleted
inserted
replaced
744:adbcf84b7b1f | 745:b9504e6ecde1 |
---|---|
419 | 419 |
420 INITIAL = "leg" | 420 INITIAL = "leg" |
421 | 421 |
422 def interact_without(self): | 422 def interact_without(self): |
423 self.game.add_inventory_item('titanium_leg') | 423 self.game.add_inventory_item('titanium_leg') |
424 self.game.current_scene.things['cryo.unit.1'].set_data( | 424 self.game.scenes['cryo'].things['cryo.unit.1'].set_data( |
425 'contains_titanium_leg', False) | 425 'contains_titanium_leg', False) |
426 self.scene.remove_thing(self) | 426 self.scene.remove_thing(self) |
427 return Result("The skeletal occupant of this cryo unit has an" | 427 return Result("The skeletal occupant of this cryo unit has an" |
428 " artificial femur made of titanium. You take it.") | 428 " artificial femur made of titanium. You take it.") |
429 | 429 |