diff gamelib/scenes/engine.py @ 399:1cfcd82519b6

You have to duct tape the superconductor
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 28 Aug 2010 21:24:04 +0200
parents 44459476aec6
children 0fd5796a1562
line wrap: on
line diff
--- a/gamelib/scenes/engine.py	Sat Aug 28 21:05:36 2010 +0200
+++ b/gamelib/scenes/engine.py	Sat Aug 28 21:24:04 2010 +0200
@@ -196,6 +196,15 @@
             return Result("With leverage, the burned-out superconductor snaps out.")
 
     def interact_with_superconductor(self, item):
+        if self.get_data('present'):
+            return Result("It might help to remove the broken superconductor first")
+        else:
+            return Result("You plug in the superconductor, and feel a humm "
+                          "as things kick into life. "
+                          "Unfortunately, it's the wrong size for the socket "
+                          "and just falls out again when you let go.")
+
+    def interact_with_taped_superconductor(self, item):
         if not self.get_data('present'):
             self.set_interact('fixed')
             self.set_data('present', True)