🎨 Remove player card stats tags

This commit is contained in:
xtaodada 2024-03-29 16:51:18 +08:00
parent e217a3906d
commit 8816ad8548
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -158,23 +158,6 @@ class PlayerCards(Plugin):
uid = player_info.player_id
return uid, ch_name
@staticmethod
def get_caption_stats(character: "CharacterInfo") -> List[str]:
tags = []
stats = character.stats
def num(_s) -> int:
return int(round(_s, 0))
tags.append(f"生命{num(stats.FIGHT_PROP_MAX_HP.to_rounded())}")
tags.append(f"攻击{num(stats.FIGHT_PROP_CUR_ATTACK.to_rounded())}")
tags.append(f"防御{num(stats.FIGHT_PROP_CUR_DEFENSE.to_rounded())}")
tags.append(f"暴击{num(stats.FIGHT_PROP_CRITICAL.to_percentage())}")
tags.append(f"暴伤{num(stats.FIGHT_PROP_CRITICAL_HURT.to_percentage())}")
tags.append(f"充能{num(stats.FIGHT_PROP_CHARGE_EFFICIENCY.to_percentage())}")
tags.append(f"精通{num(stats.FIGHT_PROP_ELEMENT_MASTERY.to_rounded())}")
return tags
@staticmethod
def get_caption(character: "CharacterInfo") -> str:
tags = [character.name, f"等级{character.level}", f"命座{character.constellations_unlocked}"]
@ -184,7 +167,6 @@ class PlayerCards(Plugin):
tags.append(item.detail.name)
tags.append(f"武器等级{item.level}")
tags.append(f"{item.refinement}")
tags.extend(PlayerCards.get_caption_stats(character))
return "#" + " #".join(tags)
@handler.command(command="player_card", player=True, block=False)