diff gamelib/scenes/machine.py @ 333:81f5fb9f50e4

Hook up manual.
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 28 Aug 2010 14:24:07 +0200
parents 0bb1ab329bee
children 3aee5895c2c6
line wrap: on
line diff
--- a/gamelib/scenes/machine.py	Sat Aug 28 14:16:10 2010 +0200
+++ b/gamelib/scenes/machine.py	Sat Aug 28 14:24:07 2010 +0200
@@ -272,19 +272,17 @@
     NAME = "machine.manual"
 
     INTERACTS = {
-        "manual": InteractNoImage(434, 496, 66, 34), # TODO: replace with manual
-        "empty": InteractNoImage(434, 496, 66, 34),
+        "manual": InteractImage(432, 493, "manual_on_floor.png"),
     }
 
     INITIAL = "manual"
 
     def interact_without(self):
-        if self.current_interact is self.interacts["manual"]:
-            self.state.add_inventory_item("manual")
-            self.set_interact("empty")
-            return Result("Ah! The ship's instruction manual. You'd feel better"
-                          " if the previous owner wasn't lying next to it with a"
-                          " gaping hole in his rib cage.")
+        self.scene.remove_thing(self)
+        self.state.add_inventory_item("manual")
+        return Result("Ah! The ship's instruction manual. You'd feel better"
+                      " if the previous owner wasn't lying next to it with a"
+                      " gaping hole in his rib cage.")
 
 
 class Manual(Item):