home · contact · privacy
Show player symbol in face pop-up.
[plomrogue2] / rogue_chat_curses.py
index 983a4221c3508b5383a32bd69497061d3cf9bd1d..6bd662be7c6873b20303fa7c3474d18d2efd9a06 100755 (executable)
@@ -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] + ' |')