From d5586e420b6ef68200a493672bc3d6375fef7148 Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Thu, 9 May 2024 05:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20=E4=BF=AE=E5=A4=8D=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GenshinUID/genshinuid_enka/mono/Character.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/GenshinUID/genshinuid_enka/mono/Character.py b/GenshinUID/genshinuid_enka/mono/Character.py index b970d9ae..eb04d0d3 100644 --- a/GenshinUID/genshinuid_enka/mono/Character.py +++ b/GenshinUID/genshinuid_enka/mono/Character.py @@ -637,14 +637,16 @@ async def get_fight_prop(self) -> Dict: 'A霜华矢两段伤害', 'A霜华矢两段伤害(融化)', ]: - val = [ - f'''{int(i[:-1]) + - int(self.power_list['A霜华矢·霜华绽发伤害']['value'][index][:-1]) - }%''' - for index, i in enumerate( - self.power_list['A霜华矢命中伤害']['value'] - ) - ] + val = [] + + for index, i in enumerate( + self.power_list['A霜华矢命中伤害']['value'] + ): + zf = self.power_list['A霜华矢·霜华绽发伤害'] + v2 = int(zf['value'][index][:-1]) + v1 = int(i[:-1]) + val.append(f'{v1 +v2}%') + self.power_list[power_name] = { 'name': power_name, 'type': '攻击力',