修复女弹药手雷精通三觉加成

This commit is contained in:
2026-10-13 11:55:24 +08:00
parent 20e13124be
commit 27d4c9301f
2 changed files with 123 additions and 2 deletions
@@ -874,9 +874,19 @@ class Skill27(PassiveSkill):
data0 = get_data(f'{prefix}/{uuid}', 0)
associate = [
{'type': '*skillDamage', 'data': data0, 'skills': ['G-14手雷', 'G-35L感电手雷', 'G-18C冰冻手雷']},
{'type': 'grenadeMastery', 'data': data0, 'skills': ['G-14手雷', 'G-35L感电手雷', 'G-18C冰冻手雷']},
]
def grenadeMastery(self, old, new, data, skills, exceptSkills, ratio, weapon):
passive = self.char.GetSkillByName('单兵推进器-02X')
bonus = 1 + self.get_data_value(passive.data1, passive.lv) / 100
old_ratio = 1 + self.get_data_value(data, old) * bonus / ratio
new_ratio = 1 + self.get_data_value(data, new) * bonus / ratio
for name in skills:
skill = self.char.GetSkillByName(name)
if skill is not None and name not in exceptSkills:
skill.skillDamage *= new_ratio / old_ratio
# 暴击
# gunner_female/spitfire_female/fc1262c19f3d0477ee8eda47b8db8696
# 944b9aab492c15a8474f96947ceeb9e4/fc1262c19f3d0477ee8eda47b8db8696
@@ -1846,7 +1856,21 @@ class Skill49(PassiveSkill):
# 强化手雷攻击力 : 手雷攻击力的{value2}%
data2 = get_data(f'{prefix}/{uuid}', 2)
associate = [{'type': '*skillDamage', 'data': data0}]
associate = [
{'type': '*skillDamage', 'data': data0},
{'type': 'grenadeMastery', 'data': data1, 'skills': ['G-14手雷', 'G-35L感电手雷', 'G-18C冰冻手雷']},
]
def grenadeMastery(self, old, new, data, skills, exceptSkills, ratio, weapon):
mastery = self.char.GetSkillByName('手雷精通')
value = self.get_data_value(mastery.data0, mastery.lv) / 100
# 三觉强化的是手雷精通的增加率,不是直接乘算手雷最终伤害。
old_ratio = 1 + value * (1 + self.get_data_value(data, old) / ratio)
new_ratio = 1 + value * (1 + self.get_data_value(data, new) / ratio)
for name in skills:
skill = self.char.GetSkillByName(name)
if skill is not None and name not in exceptSkills:
skill.skillDamage *= new_ratio / old_ratio
# 空袭战略
# gunner_female/spitfire_female/c591d1827cfbe224031c704e21d07932