comparison gamelib/scenes/crew_quarters.py @ 368:a95bfba3acd5

speling
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 28 Aug 2010 17:27:07 +0200
parents 4e939b3c73f8
children 7907cd46c206
comparison
equal deleted inserted replaced
367:23f38d018998 368:a95bfba3acd5
73 self.set_data('has_tape', False) 73 self.set_data('has_tape', False)
74 self.state.add_inventory_item('duct_tape') 74 self.state.add_inventory_item('duct_tape')
75 self.set_interact('empty_safe') 75 self.set_interact('empty_safe')
76 return Result("Duct tape. It'll stick to everything except " 76 return Result("Duct tape. It'll stick to everything except "
77 "ducts, apparently.") 77 "ducts, apparently.")
78 return Result("The perfactly balanced door swings frictionlessly " 78 return Result("The perfectly balanced door swings frictionlessly "
79 "to and fro. What craftsmanship!") 79 "to and fro. What craftsmanship!")
80 return Result("The safe is locked. This might be an interesting " 80 return Result("The safe is locked. This might be an interesting "
81 "challenge, if suitable equipment can be found.") 81 "challenge, if suitable equipment can be found.")
82 82
83 def interact_with_stethoscope(self, item): 83 def interact_with_stethoscope(self, item):
90 return (Result("Even after centuries of neglect, the tumblers slide" 90 return (Result("Even after centuries of neglect, the tumblers slide"
91 " almost silently into place. Turns out the combination" 91 " almost silently into place. Turns out the combination"
92 " was '1 2 3 4 5'. An idiot must keep his luggage in" 92 " was '1 2 3 4 5'. An idiot must keep his luggage in"
93 " here."), 93 " here."),
94 make_jim_dialog("Prisoner %s, you have been observed commiting a felony violation. " 94 make_jim_dialog("Prisoner %s, you have been observed commiting a felony violation. "
95 "This will go onto your permenant record, and your sentence may be extended by up to twenty years." 95 "This will go onto your permanent record, and your sentence may be extended by up to twenty years."
96 % PLAYER_ID, self.state)) 96 % PLAYER_ID, self.state))
97 97
98 def get_description(self): 98 def get_description(self):
99 return "Ah, a vintage Knoxx & Co. model QR3. Quaint, but reasonably secure." 99 return "Ah, a vintage Knoxx & Co. model QR3. Quaint, but reasonably secure."
100 100
137 def interact_with_duct_tape(self, item, state): 137 def interact_with_duct_tape(self, item, state):
138 helmet = FishbowlHelmet('helmet') 138 helmet = FishbowlHelmet('helmet')
139 state.add_item(helmet) 139 state.add_item(helmet)
140 state.replace_inventory_item(self.name, helmet.name) 140 state.replace_inventory_item(self.name, helmet.name)
141 return Result("You duct tape the edges of the helmet. The seal is" 141 return Result("You duct tape the edges of the helmet. The seal is"
142 " crude, but it will serve as a workable helmet if needed") 142 " crude, but it will serve as a workable helmet if needed.")
143 143
144 144
145 class FishbowlHelmet(Item): 145 class FishbowlHelmet(Item):
146 "A bowl with duct-tape" 146 "A bowl with duct-tape"
147 147
182 self.state.add_inventory_item('escher_poster') 182 self.state.add_inventory_item('escher_poster')
183 self.scene.remove_thing(self) 183 self.scene.remove_thing(self)
184 return Result("This poster will go nicely on your bedroom wall.") 184 return Result("This poster will go nicely on your bedroom wall.")
185 185
186 def get_description(self): 186 def get_description(self):
187 return "A paradoxial poster hanges below the security camera" 187 return "A paradoxical poster hangs below the security camera."
188 188
189 189
190 class EscherPoster(Item): 190 class EscherPoster(Item):
191 "A confusing poster to disable JIM" 191 "A confusing poster to disable JIM"
192 192