# HG changeset patch # User Neil Muller # Date 1282999380 -7200 # Node ID b3bc101171ea20f120ccbac07f1898f49a6888ad # Parent e1cae2b61443abdab82ead2ca26fd3cde7651a8b Don't allow access to the engine room without helmet diff -r e1cae2b61443 -r b3bc101171ea gamelib/scenes/map.py --- a/gamelib/scenes/map.py Sat Aug 28 14:42:41 2010 +0200 +++ b/gamelib/scenes/map.py Sat Aug 28 14:43:00 2010 +0200 @@ -130,6 +130,14 @@ INITIAL = "inaccessible" + def interact_without(self): + if not self.state.is_in_inventory('helmet'): + return Result("JIM says 'The engine room is in vacumn. I cannot" + " open the airlock unless you have some suitable" + " protective gear", style="JIM") + else: + return super(ToEngine, self).interact_without() + class ToMachine(DoorThing): "Way to machine room."