comparison gamelib/scenes/machine.py @ 459:786773393e6f

Tweak laser text
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 29 Aug 2010 01:16:41 +0200
parents cfcab3796410
children af2a23b9787d
comparison
equal deleted inserted replaced
458:e32505d48f99 459:786773393e6f
177 else: 177 else:
178 self.scene.things["machine.welder.slot"].set_data("contents", set()) 178 self.scene.things["machine.welder.slot"].set_data("contents", set())
179 self.scene.things["machine.welder.slot"].update_contents() 179 self.scene.things["machine.welder.slot"].update_contents()
180 if self.state.items["cryo_pipes_one"] in self.state.inventory: 180 if self.state.items["cryo_pipes_one"] in self.state.inventory:
181 self.state.replace_inventory_item("cryo_pipes_one", "cryo_pipes_two") 181 self.state.replace_inventory_item("cryo_pipes_one", "cryo_pipes_two")
182 return Result("With high-precision spitzensparken, you weld"
183 " together a second pipe. You bundle the two pipes together.",
184 soundfile='laser.ogg')
182 elif self.state.items["cryo_pipes_two"] in self.state.inventory: 185 elif self.state.items["cryo_pipes_two"] in self.state.inventory:
183 self.state.replace_inventory_item("cryo_pipes_two", "cryo_pipes_three") 186 self.state.replace_inventory_item("cryo_pipes_two", "cryo_pipes_three")
187 return Result("With high-precision spitzensparken, you create yet"
188 " another pipe. You store it with the other two.",
189 soundfile='laser.ogg')
184 elif self.state.items["cryo_pipes_three"] in self.state.inventory: 190 elif self.state.items["cryo_pipes_three"] in self.state.inventory:
185 # just for safety 191 # just for safety
186 pass 192 return None
187 else: 193 else:
188 self.state.add_inventory_item("cryo_pipes_one") 194 self.state.add_inventory_item("cryo_pipes_one")
189 return Result("With high-precision spitzensparken, the can and tube are welded" 195 return Result("With high-precision spitzensparken, the can and tube are welded"
190 " into a whole greater than the sum of the parts.", 196 " into a whole greater than the sum of the parts.",
191 soundfile='laser.ogg') 197 soundfile='laser.ogg')
192 198
193 199
194 class LaserWelderPowerLights(Thing): 200 class LaserWelderPowerLights(Thing):