Mercurial > boomslang
comparison gamelib/scenes/engine.py @ 437:cfcab3796410
Make egine room greeting fire once. Remove machine room greeting
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 23:55:56 +0200 |
parents | 6e1ad25a7db5 |
children | fdf3a6dd476b |
comparison
equal
deleted
inserted
replaced
436:6e1ad25a7db5 | 437:cfcab3796410 |
---|---|
15 BACKGROUND = "engine_room.png" | 15 BACKGROUND = "engine_room.png" |
16 | 16 |
17 INITIAL_DATA = { | 17 INITIAL_DATA = { |
18 'accessible': True, | 18 'accessible': True, |
19 'engine online': False, | 19 'engine online': False, |
20 'greet' : True, | |
20 } | 21 } |
21 | 22 |
22 def __init__(self, state): | 23 def __init__(self, state): |
23 super(Engine, self).__init__(state) | 24 super(Engine, self).__init__(state) |
24 self.add_item(CanOpener('canopener')) | 25 self.add_item(CanOpener('canopener')) |
132 return make_jim_dialog("The engines are now operational. " | 133 return make_jim_dialog("The engines are now operational. " |
133 "You have done a satisfactory job.", | 134 "You have done a satisfactory job.", |
134 self.state) | 135 self.state) |
135 | 136 |
136 def enter(self): | 137 def enter(self): |
137 return Result("You enter the engine room. Even if there wasn't a vacuum " | 138 if self.get_data('greet'): |
138 "it would be eerily quiet.") | 139 self.set_data('greet', False) |
140 return Result( | |
141 "With your improvised helmet, the automatic airlock allows you into the engine room. Even if there wasn't a vacuum " | |
142 "it would be eerily quiet.") | |
139 | 143 |
140 class Engines(Thing): | 144 class Engines(Thing): |
141 NAME = 'engine.engines' | 145 NAME = 'engine.engines' |
142 | 146 |
143 INTERACTS = { | 147 INTERACTS = { |