This commit is contained in:
bridge
2025-11-22 21:19:21 +08:00
parent 8303167add
commit 73fcdffd86

View File

@@ -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: