changeset 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 c6e0ae102efb
files gamelib/scenes/engine.py gamelib/scenes/machine.py
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
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'
--- a/gamelib/scenes/machine.py	Sat Aug 28 23:55:12 2010 +0200
+++ b/gamelib/scenes/machine.py	Sat Aug 28 23:55:56 2010 +0200
@@ -75,9 +75,6 @@
             "The block for the laser drill press", # TODO: fix description
             ((461, 446, 38, 27),)))
 
-    def enter(self):
-        return Result("The machine room is dark and forbidding.")
-
 
 class ToMap(Door):