Skip to content

Commit

Permalink
🚨 修复警告
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed May 8, 2024
1 parent a94cdf9 commit d5586e4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions GenshinUID/genshinuid_enka/mono/Character.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': '攻击力',
Expand Down

0 comments on commit d5586e4

Please sign in to comment.