Mercurial > boomslang
comparison gamelib/scenes/engine.py @ 428:3dc589bb78e4
Spellng
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 28 Aug 2010 23:31:09 +0200 |
parents | fc36fb0937a6 |
children | 19aff54b2e73 |
comparison
equal
deleted
inserted
replaced
427:201ffb539464 | 428:3dc589bb78e4 |
---|---|
199 'working': False, | 199 'working': False, |
200 } | 200 } |
201 | 201 |
202 def get_description(self): | 202 def get_description(self): |
203 if self.get_data('present') and not self.get_data('working'): | 203 if self.get_data('present') and not self.get_data('working'): |
204 return "That superconductor looks burned out. It's wedged in there pretty firmly" | 204 return "That superconductor looks burned out. It's wedged in there pretty firmly." |
205 elif not self.get_data('present'): | 205 elif not self.get_data('present'): |
206 return "An empty superconductor socket" | 206 return "An empty superconductor socket" |
207 else: | 207 else: |
208 return "A working superconductor." | 208 return "A working superconductor." |
209 | 209 |
222 | 222 |
223 def interact_with_superconductor(self, item): | 223 def interact_with_superconductor(self, item): |
224 if self.get_data('present'): | 224 if self.get_data('present'): |
225 return Result("It might help to remove the broken superconductor first") | 225 return Result("It might help to remove the broken superconductor first") |
226 else: | 226 else: |
227 return Result("You plug in the superconductor, and feel a humm " | 227 return Result("You plug in the superconductor, and feel a hum " |
228 "as things kick into life. " | 228 "as things kick into life. " |
229 "Unfortunately, it's the wrong size for the socket " | 229 "Unfortunately, it's the wrong size for the socket " |
230 "and just falls out again when you let go.") | 230 "and just falls out again when you let go.") |
231 | 231 |
232 def interact_with_taped_superconductor(self, item): | 232 def interact_with_taped_superconductor(self, item): |
234 self.set_interact('fixed') | 234 self.set_interact('fixed') |
235 self.set_data('present', True) | 235 self.set_data('present', True) |
236 self.set_data('working', True) | 236 self.set_data('working', True) |
237 self.state.remove_inventory_item(item.name) | 237 self.state.remove_inventory_item(item.name) |
238 results = [Result("The chair's superconductor looks over-specced " | 238 results = [Result("The chair's superconductor looks over-specced " |
239 "for this job, but it should work")] | 239 "for this job, but it should work.")] |
240 results.append(self.scene.engine_online_check()) | 240 results.append(self.scene.engine_online_check()) |
241 return results | 241 return results |
242 else: | 242 else: |
243 return Result("It might help to remove the broken superconductor first") | 243 return Result("It might help to remove the broken superconductor first.") |
244 | 244 |
245 | 245 |
246 class CryoContainers(Thing): | 246 class CryoContainers(Thing): |
247 NAME = 'engine.cryo_containers' | 247 NAME = 'engine.cryo_containers' |
248 | 248 |
282 def get_description(self): | 282 def get_description(self): |
283 return "The receptacles for the coolant reservoirs." | 283 return "The receptacles for the coolant reservoirs." |
284 | 284 |
285 def interact_without(self): | 285 def interact_without(self): |
286 return Result("You stick your finger in the receptacle. " | 286 return Result("You stick your finger in the receptacle. " |
287 "It almost gets stuck") | 287 "It almost gets stuck.") |
288 | 288 |
289 def interact_with_full_detergent_bottle(self, item): | 289 def interact_with_full_detergent_bottle(self, item): |
290 if not self.scene.things['engine.cracked_pipe'].get_data('fixed'): | 290 if not self.scene.things['engine.cracked_pipe'].get_data('fixed'): |
291 return Result("You think pouring the precious cryo fluid into a" | 291 return Result("You think pouring the precious cryo fluid into a" |
292 " container connected to a cracked pipe would be a waste.") | 292 " container connected to a cracked pipe would be a waste.") |
484 return Result("The duct tape already there appears to be " | 484 return Result("The duct tape already there appears to be " |
485 "sufficient.") | 485 "sufficient.") |
486 else: | 486 else: |
487 self.set_data('fixed', True) | 487 self.set_data('fixed', True) |
488 self.set_interact('taped') | 488 self.set_interact('taped') |
489 return Result("You apply your trust duct tape to the " | 489 return Result("You apply your trusty duct tape to the " |
490 "creak, sealing it.") | 490 "creak, sealing it.") |
491 | 491 |
492 | 492 |
493 class ToMap(Door): | 493 class ToMap(Door): |
494 | 494 |