Mercurial > pyntnclick
diff gamelib/scenes/bridge.py @ 491:9f488671c02e engine_refactor
No more state in Item interacts.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 19:58:35 +0200 |
parents | c72946d3a59a |
children | 3e91c82c2240 |
line wrap: on
line diff
--- a/gamelib/scenes/bridge.py Sun Aug 29 15:15:59 2010 +0200 +++ b/gamelib/scenes/bridge.py Sun Aug 29 19:58:35 2010 +0200 @@ -217,10 +217,10 @@ INVENTORY_IMAGE = 'superconductor_fixed.png' CURSOR = CursorSprite('superconductor_fixed.png') - def interact_with_duct_tape(self, item, state): + def interact_with_duct_tape(self, item): taped_superconductor = TapedSuperconductor('taped_superconductor') - state.add_item(taped_superconductor) - state.replace_inventory_item(self.name, taped_superconductor.name) + self.state.add_item(taped_superconductor) + self.state.replace_inventory_item(self.name, taped_superconductor.name) return Result("You rip off a piece of duct tape and stick it on the superconductor. " "It almost sticks to itself, but you successfully avoid disaster.")