home · contact · privacy
Show portal char next to terrain char.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 25 Nov 2020 01:04:26 +0000 (02:04 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 25 Nov 2020 01:04:26 +0000 (02:04 +0100)
rogue_chat.html
rogue_chat_curses.py

index 2a41e0ad1285cb033c0194b392d3fce2c51152d5..d865516eaad3d93054f99e7611cda281f1a85964 100644 (file)
@@ -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) {
index 653908f26d21f07021d9b026b3c918c72a6438e5..e95b0c84cc45e816bfe4b90c3bca17ccf07d94ec 100755 (executable)
@@ -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_]