changeset 459:786773393e6f

Tweak laser text
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 29 Aug 2010 01:16:41 +0200
parents e32505d48f99
children 59f719cfccea
files gamelib/scenes/machine.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/scenes/machine.py	Sun Aug 29 01:14:02 2010 +0200
+++ b/gamelib/scenes/machine.py	Sun Aug 29 01:16:41 2010 +0200
@@ -179,14 +179,20 @@
             self.scene.things["machine.welder.slot"].update_contents()
             if self.state.items["cryo_pipes_one"] in self.state.inventory:
                 self.state.replace_inventory_item("cryo_pipes_one", "cryo_pipes_two")
+                return Result("With high-precision spitzensparken, you weld"
+                        " together a second pipe. You bundle the two pipes together.",
+                        soundfile='laser.ogg')
             elif self.state.items["cryo_pipes_two"] in self.state.inventory:
                 self.state.replace_inventory_item("cryo_pipes_two", "cryo_pipes_three")
+                return Result("With high-precision spitzensparken, you create yet"
+                        " another pipe. You store it with the other two.",
+                        soundfile='laser.ogg')
             elif self.state.items["cryo_pipes_three"] in self.state.inventory:
                 # just for safety
-                pass
+                return None
             else:
                 self.state.add_inventory_item("cryo_pipes_one")
-            return Result("With high-precision spitzensparken, the can and tube are welded"
+                return Result("With high-precision spitzensparken, the can and tube are welded"
                         " into a whole greater than the sum of the parts.",
                         soundfile='laser.ogg')