Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 466:af2a23b9787d
You can now use doors while wielding things.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 01:43:55 +0200 |
parents | 8d25de1519db |
children | a9925aaf5f61 3e91c82c2240 |
comparison
equal
deleted
inserted
replaced
465:03dcb25d8370 | 466:af2a23b9787d |
---|---|
21 | 21 |
22 FOLDER = "cryo" | 22 FOLDER = "cryo" |
23 BACKGROUND = "cryo_room.png" | 23 BACKGROUND = "cryo_room.png" |
24 | 24 |
25 INITIAL_DATA = { | 25 INITIAL_DATA = { |
26 'accessible': True, | |
27 'greet' : True, | 26 'greet' : True, |
28 'vandalism_warn': True, | 27 'vandalism_warn': True, |
29 } | 28 } |
30 | 29 |
31 # sounds that will be played randomly as background noise | 30 # sounds that will be played randomly as background noise |
362 self.set_interact("ajar") | 361 self.set_interact("ajar") |
363 | 362 |
364 def open_door(self): | 363 def open_door(self): |
365 self.set_data('door', "open") | 364 self.set_data('door', "open") |
366 self.set_interact("open") | 365 self.set_interact("open") |
367 self.state.scenes['bridge'].set_data('accessible', True) | |
368 self.state.scenes['mess'].set_data('accessible', True) | |
369 | 366 |
370 def get_description(self): | 367 def get_description(self): |
371 if self.get_data('door') == "open": | 368 if self.get_data('door') == "open": |
372 return 'An open doorway leads to the rest of the ship.' | 369 return 'An open doorway leads to the rest of the ship.' |
373 elif self.get_data('door') == "ajar": | 370 elif self.get_data('door') == "ajar": |