Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 435:19aff54b2e73
Many small fixes.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 28 Aug 2010 23:48:50 +0200 |
parents | 6b7b08d67233 |
children | eebd6e08cbc9 |
comparison
equal
deleted
inserted
replaced
434:9bcb6148fc6b | 435:19aff54b2e73 |
---|---|
53 # pipes | 53 # pipes |
54 self.add_thing(GenericDescThing('cryo.pipes', 1, | 54 self.add_thing(GenericDescThing('cryo.pipes', 1, |
55 "These pipes carry cooling fluid to the cryo units.", | 55 "These pipes carry cooling fluid to the cryo units.", |
56 ( | 56 ( |
57 (552, 145, 129, 66), | 57 (552, 145, 129, 66), |
58 # (643, 199, 38, 233), | |
59 (636, 82, 165, 60), | 58 (636, 82, 165, 60), |
60 (140, 135, 112, 73), | 59 (140, 135, 112, 73), |
61 # (125, 192, 27, 258), | |
62 (11, 63, 140, 67), | 60 (11, 63, 140, 67), |
63 #(2, 130, 44, 394), | |
64 #(756, 127, 52, 393), | |
65 ))) | 61 ))) |
66 self.add_thing(UncuttableCryoPipes()) | 62 self.add_thing(UncuttableCryoPipes()) |
67 | 63 |
68 # cryo units | 64 # cryo units |
69 self.add_thing(GenericCryoUnit(2, | 65 self.add_thing(GenericCryoUnit(2, |
103 (330, 500, 60, 50), | 99 (330, 500, 60, 50), |
104 ))) | 100 ))) |
105 | 101 |
106 self.add_thing(GenericCryoUnit(6, | 102 self.add_thing(GenericCryoUnit(6, |
107 "An empty cryo unit. Recently filled by you.", | 103 "An empty cryo unit. Recently filled by you.", |
108 "Prisoner %s. Safe cracker. 30 years." % PLAYER_ID, | 104 "Prisoner %s. Safecracking, grand larceny. 30 years." % PLAYER_ID, |
109 ( | 105 ( |
110 (399, 426, 70, 56), | 106 (399, 426, 70, 56), |
111 (404, 455, 69, 120), | 107 (404, 455, 69, 120), |
112 ))) | 108 ))) |
113 | 109 |
114 self.add_thing(GenericCryoUnit(7, | 110 self.add_thing(GenericCryoUnit(7, |
115 "An empty cryo unit.", | 111 "An empty cryo unit.", |
116 "Prisoner 83F1-CE32D3234749. Spammer. 5 years", | 112 "Prisoner 83F1-CE32D3234749. Spamming. 5 years", |
117 ( | 113 ( |
118 (472, 432, 58, 51), | 114 (472, 432, 58, 51), |
119 (488, 455, 41, 134), | 115 (488, 455, 41, 134), |
120 (517, 487, 42, 93), | 116 (517, 487, 42, 93), |
121 ))) | 117 ))) |
342 if self.get_data('door') == "ajar": | 338 if self.get_data('door') == "ajar": |
343 self.open_door() | 339 self.open_door() |
344 return Result("You wedge the titanium femur into the chain and twist. With a satisfying *snap*, the chain breaks and the door opens.", soundfile='break.ogg') | 340 return Result("You wedge the titanium femur into the chain and twist. With a satisfying *snap*, the chain breaks and the door opens.", soundfile='break.ogg') |
345 elif self.get_data('door') == "shut": | 341 elif self.get_data('door') == "shut": |
346 text = "You bang on the door with the titanium femur. It makes a clanging sound." | 342 text = "You bang on the door with the titanium femur. It makes a clanging sound." |
347 speech.say(self.name, text) | |
348 return Result(text, soundfile='clang.ogg') | 343 return Result(text, soundfile='clang.ogg') |
349 else: | 344 else: |
350 return Result("You wave the femur in the doorway. Nothing happens.") | 345 return Result("You wave the femur in the doorway. Nothing happens.") |
351 | 346 |
352 def interact_without(self): | 347 def interact_without(self): |
357 else: | 352 else: |
358 self.state.set_current_scene('map') | 353 self.state.set_current_scene('map') |
359 return None | 354 return None |
360 | 355 |
361 def interact_default(self, item): | 356 def interact_default(self, item): |
362 return Result(random.choice([ | 357 return self.interact_without() |
363 "Sadly, this isn't that sort of game.", | |
364 "Your valiant efforts are foiled by the Evil Game Designer.", | |
365 "The door resists. Try something else, perhaps?", | |
366 ])) | |
367 | 358 |
368 def half_open_door(self): | 359 def half_open_door(self): |
369 self.set_data('door', "ajar") | 360 self.set_data('door', "ajar") |
370 self.set_interact("ajar") | 361 self.set_interact("ajar") |
371 | 362 |