From: Christian Heller Date: Wed, 25 Nov 2020 01:04:26 +0000 (+0100) Subject: Show portal char next to terrain char. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/balance?a=commitdiff_plain;h=49741de058b5320f181c69894da6dbdac2a6fa8d;p=plomrogue2 Show portal char next to terrain char. --- 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_]