From 49741de058b5320f181c69894da6dbdac2a6fa8d Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 25 Nov 2020 02:04:26 +0100 Subject: [PATCH] Show portal char next to terrain char. --- rogue_chat.html | 3 ++- rogue_chat_curses.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rogue_chat.html b/rogue_chat.html index 2a41e0a..d865516 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -814,7 +814,8 @@ let tui = { } else if (this.map_mode == 'terrain') { for (const p in game.portals) { let coordinate = p.split(',') - map_lines_split[coordinate[0]][coordinate[1]] = 'P '; + let original = map_lines_split[coordinate[0]][coordinate[1]]; + map_lines_split[coordinate[0]][coordinate[1]] = original[0] + 'P'; } let used_positions = []; for (const thing_id in game.things) { diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 653908f..e95b0c8 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -674,7 +674,8 @@ class TUI: map_lines_split[p.y][p.x] = 'A ' elif self.map_mode == 'terrain': for p in self.game.portals.keys(): - map_lines_split[p.y][p.x] = 'P ' + original = map_lines_split[p.y][p.x] + map_lines_split[p.y][p.x] = original[0] + 'P' used_positions = [] for t in self.game.things: symbol = self.game.thing_types[t.type_] -- 2.30.2