X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/gitweb.js?a=blobdiff_plain;f=plomrogue%2Fgame.py;h=84bebb98c2d4a45f0a1f68619681790f07ce5d99;hb=687f032b63ef13e98a8e71ef59c6ef0cd032149f;hp=ccd51dcc1b363e1d6e1cb46428dd96b61ad023cb;hpb=43591a0ee2c85a98730aac730aded8c0a8cdba57;p=plomrogue2 diff --git a/plomrogue/game.py b/plomrogue/game.py index ccd51dc..84bebb9 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -146,6 +146,12 @@ class Game(GameBase): target_yx = player.fov_stencil.target_yx(big_yx, little_yx) portal = self.portals[big_yx][little_yx] self.io.send('PORTAL %s %s' % (target_yx, quote(portal)), c_id) + for big_yx in self.annotations: + for little_yx in [little_yx for little_yx in self.annotations[big_yx] + if player.fov_test(big_yx, little_yx)]: + target_yx = player.fov_stencil.target_yx(big_yx, little_yx) + annotation = self.annotations[big_yx][little_yx] + self.io.send('ANNOTATION_HINT %s' % (target_yx,), c_id) self.io.send('GAME_STATE_COMPLETE') def run_tick(self):