dev
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user