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

speling
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 28 Aug 2010 17:27:07 +0200
parents 452230d78541
children 8a288db78f40
comparison
equal deleted inserted replaced
367:23f38d018998 368:a95bfba3acd5
276 276
277 def interact_without(self): 277 def interact_without(self):
278 if self.scene.get_data('ai status') == 'online': 278 if self.scene.get_data('ai status') == 'online':
279 return self.interact_default() 279 return self.interact_default()
280 elif self.scene.get_data('ai panel') == 'closed': 280 elif self.scene.get_data('ai panel') == 'closed':
281 return Result("You are unable to open the panel with you bare hands") 281 return Result("You are unable to open the panel with your bare hands.")
282 elif self.scene.get_data('ai panel') == 'open': 282 elif self.scene.get_data('ai panel') == 'open':
283 self.scene.set_data('ai panel', 'broken') 283 self.scene.set_data('ai panel', 'broken')
284 self.scene.set_data('ai status', 'dead') 284 self.scene.set_data('ai status', 'dead')
285 self.set_interact('broken') 285 self.set_interact('broken')
286 return Result("You unplug various important looking wires.") 286 return Result("You unplug various important-looking wires.")
287 287
288 288
289 def interact_with_machete(self, item): 289 def interact_with_machete(self, item):
290 if self.scene.get_data('ai status') == 'online': 290 if self.scene.get_data('ai status') == 'online':
291 return self.interact_default() 291 return self.interact_default()
299 self.set_interact('broken') 299 self.set_interact('broken')
300 return Result("You smash various delicate components with the machete.") 300 return Result("You smash various delicate components with the machete.")
301 301
302 def interact_default(self): 302 def interact_default(self):
303 if self.scene.get_data('ai status') == 'online': 303 if self.scene.get_data('ai status') == 'online':
304 return (Result('You feel a shock from the panel'), 304 return (Result('You feel a shock from the panel.'),
305 make_jim_dialog("Prisoner %s. Please step away from the panel. " 305 make_jim_dialog("Prisoner %s. Please step away from the panel. "
306 "You are not an authorized techinican." % PLAYER_ID, self.state)) 306 "You are not an authorized techinican." % PLAYER_ID, self.state))
307 307
308 class ChairDetail(Scene): 308 class ChairDetail(Scene):
309 309