fix:修复职业报错的情况

This commit is contained in:
2026-06-08 14:48:34 +08:00
parent a7e5470e2d
commit 258f06770c
6 changed files with 57 additions and 30 deletions
@@ -200,8 +200,8 @@ class Skill11(ActiveSkill):
self._ratio = value
# 技能等级变化的时候,系数对应的数值变化
def update_skill_attribute(self,skill, type, old, new, data,ratio = 100,weapon = []):
super().update_skill_attribute(skill, type, old, new, data, ratio / self.ratio, weapon)
def update_skill_attribute(self, skill, type, old, new, data, ratio=100, weapon=(), weapon_type=None, weapon_options=()):
super().update_skill_attribute(skill, type, old, new, data, ratio / self.ratio, weapon, weapon_type, weapon_options)
# 虚无之球 보이드
@@ -300,8 +300,8 @@ class Skill16(PassiveSkill):
self._ratio = value
# 技能等级变化的时候,系数对应的数值变化
def update_skill_attribute(self,skill, type, old, new, data,ratio = 100,weapon = []):
super().update_skill_attribute(skill, type, old, new, data, ratio / self.ratio, weapon)
def update_skill_attribute(self, skill, type, old, new, data, ratio=100, weapon=(), weapon_type=None, weapon_options=()):
super().update_skill_attribute(skill, type, old, new, data, ratio / self.ratio, weapon, weapon_type, weapon_options)
# 天雷 썬더 콜링
# https://api.neople.co.kr/df/skills/3909d0b188e9c95311399f776e331da5/d2c6df5105577fb59fb92529a36165a0?apikey=fdvit1Kj64EAJm0qfB3JEAD8FLExLDD0
@@ -1677,7 +1677,7 @@ class Skill45(ActiveSkill):
# 3层信仰效果时神圣之力持续时间 : {value6}秒
data6 = get_data(f'{prefix}/{uuid}', 6)
def skillInfo(self):
def skillInfo(self,mode=""):
prep = self.char.BuffSkill.skillInfo()
ratio = self.data2[self.lv] * 5 / 100
return prep[0] * ratio, [prep[1][0] * ratio, prep[1][1], prep[1][2] * ratio], [prep[2][0] * ratio, prep[2][1], prep[2][2] * ratio], 0, self.getSkillCD()
@@ -1843,7 +1843,7 @@ class Skill49(ActiveSkill):
# 力量、 智力增加 : [天启之光]数值的{value6}%
data6 = get_data(f'{prefix}/{uuid}', 6)
def skillInfo(self):
def skillInfo(self,mode=""):
"""技能信息"""
prep = self.char.AwakeSkill.skillInfo()
ratio = 0
+2 -2
View File
@@ -345,11 +345,11 @@ class Skill19(ActiveSkill):
skill.endpower *= raito
self._maxLayer = value
def update_skill_attribute(self, skill, type, old, new, data, ratio, weapon=[]):
def update_skill_attribute(self, skill, type, old, new, data, ratio=100, weapon=(), weapon_type=None, weapon_options=()):
if len(data) == 0:
data = getattr(self, f'data{int(self.maxLayer)}')
data = [i - 100 if i > 100 else 0 for i in data]
super().update_skill_attribute(skill, type, old, new, data, ratio, weapon)
super().update_skill_attribute(skill, type, old, new, data, ratio, weapon, weapon_type, weapon_options)
# 弧光连闪