From 8816ad8548bc69dee0825b80b54293f45bdce7ff Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 29 Mar 2024 16:51:18 +0800 Subject: [PATCH] :art: Remove player card stats tags --- plugins/genshin/player_cards.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/plugins/genshin/player_cards.py b/plugins/genshin/player_cards.py index 84054736..753e5d0b 100644 --- a/plugins/genshin/player_cards.py +++ b/plugins/genshin/player_cards.py @@ -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)