diff gamelib/scenes/engine.py @ 353:b61dccc7fb42

Detergent + cryo fluid puzzle (currently triangular)
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 28 Aug 2010 16:18:40 +0200
parents 67e8a547970b
children e5f28bd6d4ce
line wrap: on
line diff
--- a/gamelib/scenes/engine.py	Sat Aug 28 15:53:56 2010 +0200
+++ b/gamelib/scenes/engine.py	Sat Aug 28 16:18:40 2010 +0200
@@ -249,6 +249,18 @@
     def get_description(self):
         return "The receptacles for the coolant reservoirs."
 
+    def interact_without(self):
+        return Result("You stick your finger in the receptacle. "
+                      "It almost gets stuck")
+
+    def interact_with_full_detergent_bottle(self, item):
+        # TODO: Show full tank interact
+        self.state.remove_inventory_item(item.name)
+        self.state.current_scene.things['engine.cryo_containers'] \
+                  .set_data('filled', True)
+        return Result("You fill the reservoirs. "
+                      "It seems the detergent bottle was just big enough")
+
 
 class CoolingPipes(Thing):
     NAME = 'engine.coolingpipes'