From 6a70ba4e9d6e3ff89b2cdd40ef65e600e6ed6548 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 15 Nov 2020 23:27:50 +0100 Subject: [PATCH] Mark portals as P on map. --- rogue_chat_curses.py | 2 ++ rogue_chat_nocanvas_monochrome.html | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index c5e4f9d..0644a4c 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -509,6 +509,8 @@ class TUI: end = start + self.game.map_geometry.size.x map_lines_split += [[c + ' ' for c in map_content[start:end]]] if self.map_mode == 'terrain': + for p in self.game.portals.keys(): + map_lines_split[p.y][p.x] = 'P ' used_positions = [] for t in self.game.things: symbol = self.game.thing_types[t.type_] diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html index c96fe65..7a479d0 100644 --- a/rogue_chat_nocanvas_monochrome.html +++ b/rogue_chat_nocanvas_monochrome.html @@ -533,6 +533,10 @@ let tui = { }; map_lines_split.push(line); if (this.map_mode == 'terrain') { + for (const p in game.portals) { + let coordinate = p.split(',') + map_lines_split[coordinate[0]][coordinate[1]] = 'P '; + } let used_positions = []; for (const thing_id in game.things) { let t = game.things[thing_id]; -- 2.30.2