Merge pull request #186 from CRAZYShimakaze/nonebot2

修复苍古伤害计算问题
This commit is contained in:
惜月 2022-08-21 09:56:23 -05:00 committed by GitHub
commit 5103992b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ def weapon_common_fix(data: dict):
elif weapon['名称'] == '苍古自由之誓':
for i, k in enumerate(attr['伤害加成']):
attr['伤害加成'][i] = k + (0.075 + 0.025 * weapon['精炼等级'])
data['额外攻击'] += data['基础攻击'] * (0.15 + 0.05 * weapon['精炼等级'])
attr['额外攻击'] += attr['基础攻击'] * (0.15 + 0.05 * weapon['精炼等级'])
extra_a['普攻增伤'] += 0.12 + 0.04 * weapon['精炼等级']
extra_a['重击增伤'] += 0.12 + 0.04 * weapon['精炼等级']
extra_a['下落攻击增伤'] += 0.12 + 0.04 * weapon['精炼等级']