X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=rogue_chat_curses.py;h=6bd662be7c6873b20303fa7c3474d18d2efd9a06;hb=a595b17ad67ad065a35e14f66773c2eaace0fa8c;hp=983a4221c3508b5383a32bd69497061d3cf9bd1d;hpb=b3274c1e3219d50cc67487684608c7b4bd456675;p=plomrogue2 diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index 983a422..6bd662b 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -966,13 +966,16 @@ class TUI: def draw_face_popup(): t = self.game.get_thing(self.draw_face) - if not t: + if not t or not hasattr(t, 'face'): self.draw_face = False return start_x = self.window_width - 10 + t_char = ' ' + if hasattr(t, 'thing_char'): + t_char = t.thing_char def draw_body_part(body_part, end_y): - safe_addstr(end_y - 4, start_x, ' ________ ') + safe_addstr(end_y - 4, start_x, ' _[ @' + t_char + ' ]_ ') safe_addstr(end_y - 3, start_x, '| |') safe_addstr(end_y - 2, start_x, '| ' + body_part[0:6] + ' |') safe_addstr(end_y - 1, start_x, '| ' + body_part[6:12] + ' |')