diff 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
line wrap: on
line diff
--- a/gamelib/scenes/engine.py	Sat Aug 28 23:55:12 2010 +0200
+++ b/gamelib/scenes/engine.py	Sat Aug 28 23:55:56 2010 +0200
@@ -17,6 +17,7 @@
     INITIAL_DATA = {
         'accessible': True,
         'engine online': False,
+        'greet' : True,
         }
 
     def __init__(self, state):
@@ -134,8 +135,11 @@
                                    self.state)
 
     def enter(self):
-        return Result("You enter the engine room. Even if there wasn't a vacuum "
-                      "it would be eerily quiet.")
+        if self.get_data('greet'):
+            self.set_data('greet', False)
+            return Result(
+                    "With your improvised helmet, the automatic airlock allows you into the engine room. Even if there wasn't a vacuum "
+                    "it would be eerily quiet.")
 
 class Engines(Thing):
     NAME = 'engine.engines'