From: Christian Heller Date: Sun, 8 Nov 2020 02:39:28 +0000 (+0100) Subject: Add TERRAIN and PLAYER lines to curses client study view. X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=commitdiff_plain;h=e14622d75ec8729ec94221340d65a1ebadab8bfa Add TERRAIN and PLAYER lines to curses client study view. --- diff --git a/new2/rogue_chat_curses.py b/new2/rogue_chat_curses.py index 7030c29..ee2cae8 100755 --- a/new2/rogue_chat_curses.py +++ b/new2/rogue_chat_curses.py @@ -394,10 +394,15 @@ class TUI: def draw_info(): if not self.game.turn_complete: return + pos_i = self.explorer.y * self.game.map_geometry.size.x + self.explorer.x + info = 'TERRAIN: %s\n' % self.game.map_content[pos_i] + for t in self.game.things: + if t.position == self.explorer: + info += 'PLAYER @: %s\n' % t.name if self.explorer in self.game.portals: - info = 'PORTAL: ' + self.game.portals[self.explorer] + '\n' + info += 'PORTAL: ' + self.game.portals[self.explorer] + '\n' else: - info = 'PORTAL: (none)\n' + info += 'PORTAL: (none)\n' if self.explorer in self.game.info_db: info += 'ANNOTATION: ' + self.game.info_db[self.explorer] else: