diff --git a/src/classes/long_term_objective.py b/src/classes/long_term_objective.py index af5ee1c..2932cc4 100644 --- a/src/classes/long_term_objective.py +++ b/src/classes/long_term_objective.py @@ -176,10 +176,11 @@ def set_user_long_term_objective(avatar: "Avatar", objective_content: str) -> No set_year=current_year ) - # 用户手动设定长期目标时,清空短期目标,以便AI重新规划 + # 用户手动设定长期目标时,清空短期目标和后续计划,以便AI重新规划 avatar.short_term_objective = "" + avatar.clear_plans() - logger.info(f"玩家为角色 {avatar.name} 设定长期目标:{objective_content},并已清空短期目标") + logger.info(f"玩家为角色 {avatar.name} 设定长期目标:{objective_content},并已清空短期目标和后续计划") def clear_user_long_term_objective(avatar: "Avatar") -> bool: