refactor battle strength system

This commit is contained in:
bridge
2026-01-04 22:25:25 +08:00
parent 276902bca0
commit 4fc74b1531
5 changed files with 180 additions and 29 deletions

View File

@@ -120,6 +120,7 @@ def get_avatar_structured_info(avatar: "Avatar") -> dict:
"hp": {"cur": avatar.hp.cur, "max": avatar.hp.max},
"alignment": str(avatar.alignment) if avatar.alignment else "未知",
"magic_stone": avatar.magic_stone.value,
"base_battle_strength": int(get_base_strength(avatar)),
"thinking": avatar.thinking,
"short_term_objective": avatar.short_term_objective,
"long_term_objective": avatar.long_term_objective.content if avatar.long_term_objective else "",