X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=rogue_chat_curses.py;h=3b110bae0b091dff9e8967f60fce7e8584961741;hb=ea961663328b40a2423cb2bb0d73a8e91b1797ee;hp=f69153f1006cb127cf9f25a24bf52e6c2b118330;hpb=7abc6dcdbe60dce9b8efad07917fb274da06687a;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index f69153f..3b110ba 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -492,22 +492,27 @@ class TUI: for y in range(self.game.map_geometry.size.y): start = self.game.map_geometry.size.x * y end = start + self.game.map_geometry.size.x - map_lines_split += [list(map_content[start:end])] + map_lines_split += [[c + ' ' for c in map_content[start:end]]] if self.map_mode == 'terrain': + used_positions = [] for t in self.game.things: symbol = self.game.thing_types[t.type_] - map_lines_split[t.position.y][t.position.x] = symbol + if t.position in used_positions: + map_lines_split[t.position.y][t.position.x] = symbol + '+' + else: + map_lines_split[t.position.y][t.position.x] = symbol + ' ' + used_positions += [t.position] if self.mode.shows_info: - map_lines_split[self.explorer.y][self.explorer.x] = '?' + map_lines_split[self.explorer.y][self.explorer.x] = '??' map_lines = [] if type(self.game.map_geometry) == MapGeometryHex: indent = 0 for line in map_lines_split: - map_lines += [indent*' ' + ' '.join(line)] + map_lines += [indent*' ' + ''.join(line)] indent = 0 if indent else 1 else: for line in map_lines_split: - map_lines += [' '.join(line)] + map_lines += [''.join(line)] window_center = YX(int(self.size.y / 2), int(self.window_width / 2)) player = self.game.get_thing(self.game.player_id)