refactor economy prices

This commit is contained in:
bridge
2025-12-31 23:41:45 +08:00
parent 3a47d48fb8
commit b43530ee99
8 changed files with 327 additions and 41 deletions

View File

@@ -28,8 +28,8 @@ def get_avatar_info(avatar: "Avatar", detailed: bool = False) -> dict:
from src.classes.sect import get_sect_info_with_rank
if detailed:
weapon_info = f"{avatar.weapon.get_detailed_info()},熟练度:{avatar.weapon_proficiency:.1f}%"
auxiliary_info = avatar.auxiliary.get_detailed_info() if avatar.auxiliary is not None else ""
weapon_info = f"{avatar.weapon.get_detailed_info()},熟练度:{avatar.weapon_proficiency:.1f}%" if avatar.weapon else ""
auxiliary_info = avatar.auxiliary.get_detailed_info() if avatar.auxiliary else ""
sect_info = get_sect_info_with_rank(avatar, detailed=True)
alignment_info = avatar.alignment.get_detailed_info() if avatar.alignment is not None else "未知"
region_info = region.get_detailed_info() if region is not None else ""