comparison gamelib/scenes/cryo.py @ 422:785bceda2f4f

Full stops.
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 28 Aug 2010 23:15:59 +0200
parents 41ee3fc71404
children 6b7b08d67233
comparison
equal deleted inserted replaced
421:a804a9489d32 422:785bceda2f4f
170 "eventually the pipe is separated from the wall.")] 170 "eventually the pipe is separated from the wall.")]
171 if self.state.current_scene.get_data('vandalism_warn'): 171 if self.state.current_scene.get_data('vandalism_warn'):
172 self.state.current_scene.set_data('vandalism_warn', False) 172 self.state.current_scene.set_data('vandalism_warn', False)
173 responses.append(make_jim_dialog( 173 responses.append(make_jim_dialog(
174 ("Prisoner %s. Vandalism is an offence punishable by a " 174 ("Prisoner %s. Vandalism is an offence punishable by a "
175 "minimum of an additional 6 months to your sentence" 175 "minimum of an additional 6 months to your sentence."
176 ) % PLAYER_ID, self.state)) 176 ) % PLAYER_ID, self.state))
177 return responses 177 return responses
178 178
179 def is_interactive(self): 179 def is_interactive(self):
180 return self.get_data('fixed') 180 return self.get_data('fixed')
185 return None 185 return None
186 186
187 def get_description(self): 187 def get_description(self):
188 if self.get_data('fixed'): 188 if self.get_data('fixed'):
189 return "These pipes carry cooling fluid to empty cryo units." 189 return "These pipes carry cooling fluid to empty cryo units."
190 return "There used to be a pipe carrying cooling fluid here" 190 return "There used to be a pipe carrying cooling fluid here."
191 191
192 192
193 class UncuttableCryoPipes(Thing): 193 class UncuttableCryoPipes(Thing):
194 "Base class for cryo pipes that can't be cut down." 194 "Base class for cryo pipes that can't be cut down."
195 195
311 def get_description(self): 311 def get_description(self):
312 return self.description 312 return self.description
313 313
314 def interact_with_titanium_leg(self, item): 314 def interact_with_titanium_leg(self, item):
315 return Result(random.choice([ 315 return Result(random.choice([
316 "You bang on the chamber with the titanium femur. Nothing much happens", 316 "You bang on the chamber with the titanium femur. Nothing much happens.",
317 "Hitting the cryo unit with the femur doesn't achieve anything", 317 "Hitting the cryo unit with the femur doesn't achieve anything.",
318 "You hit the chamber with the femur. Nothing happens.", 318 "You hit the chamber with the femur. Nothing happens.",
319 ]), soundfile="clang2.ogg") 319 ]), soundfile="clang2.ogg")
320 320
321 321
322 class CryoRoomDoor(Door): 322 class CryoRoomDoor(Door):
437 } 437 }
438 438
439 INITIAL = "plaque" 439 INITIAL = "plaque"
440 440
441 def interact_without(self): 441 def interact_without(self):
442 return Result("The plaque is welded to the unit. You can't shift it") 442 return Result("The plaque is welded to the unit. You can't shift it.")
443 443
444 def get_description(self): 444 def get_description(self):
445 return "'Prisoner 98CC-764E646391EE. War crimes. 45 years." 445 return "'Prisoner 98CC-764E646391EE. War crimes. 45 years."
446 446
447 447
464 } 464 }
465 465
466 INITIAL = 'pools' 466 INITIAL = 'pools'
467 467
468 def get_description(self): 468 def get_description(self):
469 return "Coolant leaks disturbingly from the bulkheads" 469 return "Coolant leaks disturbingly from the bulkheads."
470 470
471 def interact_without(self): 471 def interact_without(self):
472 return Result("It's gooey") 472 return Result("It's gooey")
473 473
474 def interact_with_detergent_bottle(self, item): 474 def interact_with_detergent_bottle(self, item):
475 full = FullBottle('full_detergent_bottle') 475 full = FullBottle('full_detergent_bottle')
476 self.state.add_item(full) 476 self.state.add_item(full)
477 self.state.replace_inventory_item(item.name, full.name) 477 self.state.replace_inventory_item(item.name, full.name)
478 return Result("You scoop up some coolant and fill the bottle") 478 return Result("You scoop up some coolant and fill the bottle.")
479 479
480 480
481 class CryoCompDetail(Scene): 481 class CryoCompDetail(Scene):
482 482
483 FOLDER = "cryo" 483 FOLDER = "cryo"