diff gamelib/scenes/crew_quarters.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 5bd6bd3d42fa
children 821b322e903b
line wrap: on
line diff
--- a/gamelib/scenes/crew_quarters.py	Sun Aug 29 15:15:59 2010 +0200
+++ b/gamelib/scenes/crew_quarters.py	Sun Aug 29 19:58:35 2010 +0200
@@ -133,10 +133,10 @@
     CURSOR = CursorSprite('fishbowl.png')
     NAME = "fishbowl"
 
-    def interact_with_duct_tape(self, item, state):
+    def interact_with_duct_tape(self, item):
         helmet = FishbowlHelmet('helmet')
-        state.add_item(helmet)
-        state.replace_inventory_item(self.name, helmet.name)
+        self.state.add_item(helmet)
+        self.state.replace_inventory_item(self.name, helmet.name)
         return Result("You duct tape the edges of the helmet. The seal is"
                 " crude, but it will serve as a workable helmet if needed.")