# HG changeset patch # User Stefano Rivera # Date 1283257980 -7200 # Node ID e49e4fe7624138778c04ce73b5625e4267a00e26 # Parent cfd9c2bb4474dec0b82586cf0053dba5c21c5eb7 Alter security camera description and is_interactive to match JIM's state diff -r cfd9c2bb4474 -r e49e4fe76241 gamelib/scenes/scene_widgets.py --- a/gamelib/scenes/scene_widgets.py Tue Aug 31 14:25:09 2010 +0200 +++ b/gamelib/scenes/scene_widgets.py Tue Aug 31 14:33:00 2010 +0200 @@ -191,7 +191,16 @@ } def get_description(self): - return "A security camera watches over the room" + status = self.state.scenes['bridge'].get_data('ai status') + if status == 'online': + return "A security camera watches over the room" + elif status == 'looping': + return "The security camera is currently offline but should be working soon" + else: + return "The security camera is powered down" + + def is_interactive(self): + return self.state.scenes['bridge'].get_data('ai status') == 'online' def interact_with_escher_poster(self, item): # Order matters here, because of helper function