From 37fe03480974c93f45c65059ad42ce2f4ea282a1 Mon Sep 17 00:00:00 2001 From: bridge Date: Tue, 14 Oct 2025 00:39:04 +0800 Subject: [PATCH] update --- src/classes/avatar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/classes/avatar.py b/src/classes/avatar.py index ee5f8b4..a6e9485 100644 --- a/src/classes/avatar.py +++ b/src/classes/avatar.py @@ -558,7 +558,8 @@ class Avatar: """ relation = self.get_relation(other_avatar) relation_str = str(relation) - return f"{other_avatar.name},境界:{other_avatar.cultivation_progress.get_info()},关系:{relation_str},阵营:{other_avatar.alignment},宗门:{other_avatar.sect.name},外貌:{other_avatar.appearance.get_info()}" + sect_str = other_avatar.sect.name if other_avatar.sect is not None else "散修" + return f"{other_avatar.name},境界:{other_avatar.cultivation_progress.get_info()},关系:{relation_str},阵营:{other_avatar.alignment},宗门:{sect_str},外貌:{other_avatar.appearance.get_info()}" @property def move_step_length(self) -> int: