This commit is contained in:
2025-05-05 20:33:35 +08:00
parent 0bfcf40a76
commit 169d1b0e8f
+1 -1
View File
@@ -158,7 +158,7 @@ class Skill:
if self.char.GetWeaponType()[0] not in weapon: if self.char.GetWeaponType()[0] not in weapon:
return return
if type.startswith('*'): if type.startswith('*'):
if 'cdReduce' in type or type == 'cd': if 'cdReduce' in type or type == 'cd' or 'cdRatio' in type:
setattr(skill, type[1:], getattr(skill, type[1:]) * (1 - data[new] / ratio) / (1 - data[old] / ratio)) setattr(skill, type[1:], getattr(skill, type[1:]) * (1 - data[new] / ratio) / (1 - data[old] / ratio))
else: else:
setattr(skill, type[1:], getattr(skill, type[1:]) * (1 + data[new] / ratio) / (1 + data[old] / ratio)) setattr(skill, type[1:], getattr(skill, type[1:]) * (1 + data[new] / ratio) / (1 + data[old] / ratio))