comparison gamelib/scenes/cryo.py @ 329:0bb1ab329bee

Link up laser welder
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 28 Aug 2010 14:00:38 +0200
parents 3cb48621759a
children c193cbff785d
comparison
equal deleted inserted replaced
328:3cb48621759a 329:0bb1ab329bee
164 } 164 }
165 165
166 def interact_with_machete(self, item): 166 def interact_with_machete(self, item):
167 if self.get_data('fixed'): 167 if self.get_data('fixed'):
168 self.set_data('fixed', False) 168 self.set_data('fixed', False)
169 pipe = CryoPipe('cryo_pipe') 169 pipe = TubeFragment('tube_fragment')
170 self.state.add_item(pipe) 170 self.state.add_item(pipe)
171 self.state.add_inventory_item(pipe.name) 171 self.state.add_inventory_item(pipe.name)
172 self.set_interact("chopped") 172 self.set_interact("chopped")
173 return Result("It takes more effort than one would expect, but " 173 return Result("It takes more effort than one would expect, but "
174 "eventually the pipe is separated from the wall.") 174 "eventually the pipe is separated from the wall.")
212 212
213 def get_description(self): 213 def get_description(self):
214 return "These pipes carry cooling fluid to the working cryo units." 214 return "These pipes carry cooling fluid to the working cryo units."
215 215
216 216
217 class CryoPipe(CloneableItem): 217 class TubeFragment(CloneableItem):
218 "After emptying the full can." 218 "Obtained after cutting down a cryo room pipe."
219 219
220 INVENTORY_IMAGE = "cryo_pipe.png" 220 INVENTORY_IMAGE = "tube_fragment.png"
221 CURSOR = CursorSprite('cryo_pipe_cursor.png') 221 CURSOR = CursorSprite('tube_fragment_cursor.png')
222 TOOL_NAME = "pipe" 222 TOOL_NAME = "tube_fragment"
223 223
224 224
225 class CryoPipeLeft(CryoPipeBase): 225 class CryoPipeLeft(CryoPipeBase):
226 "Left cryo pipe." 226 "Left cryo pipe."
227 227