Mercurial > boomslang
diff gamelib/scenes/map.py @ 133:0530547a131f
Better map handling, detail_view stuff in Result.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 19:49:10 +0200 |
parents | 686bb74a52f8 |
children | 12c66793db8f |
line wrap: on
line diff
--- a/gamelib/scenes/map.py Tue Aug 24 19:22:01 2010 +0200 +++ b/gamelib/scenes/map.py Tue Aug 24 19:49:10 2010 +0200 @@ -40,8 +40,13 @@ def interact_without(self): """Go to destination.""" if self.DEST in self.state.scenes: - self.state.set_current_scene(self.DEST) - return Result("You head for the %s." % self.DEST) + if self.state.scenes[self.DEST].get_data('accessible'): + self.state.set_current_scene(self.DEST) + return Result() + else: + return Result("You can't go there right now.") + else: + return Result("You *could* go there, but it doesn't actually exist.") def check_dest(self): if self.DEST in self.state.scenes: