X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=rogue_chat_curses.py;h=be3c53f7226fcbecdb26cdacde5b99127da17d15;hb=61fa10d0738452a5f0e62fd33d48eabcfa46b7c3;hp=70d60b27f1c6ee8abfccf31f6b3d0a0f73d54d2e;hpb=0343bcfedc26a4f2938312f1573de36dfd0fd9be;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 70d60b2..be3c53f 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -790,7 +790,8 @@ class TUI: 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: + + def draw_thing(t, used_positions): symbol = self.game.thing_types[t.type_] meta_char = ' ' if hasattr(t, 'thing_char'): @@ -799,6 +800,11 @@ class TUI: meta_char = '+' map_lines_split[t.position.y][t.position.x] = symbol + meta_char used_positions += [t.position] + + for t in [t for t in self.game.things if t.type_ != 'Player']: + draw_thing(t, used_positions) + for t in [t for t in self.game.things if t.type_ == 'Player']: + draw_thing(t, used_positions) player = self.game.get_thing(self.game.player_id) if self.mode.shows_info or self.mode.name == 'control_tile_draw': map_lines_split[self.explorer.y][self.explorer.x] = '??'