Skip to content

Commit

Permalink
bugfix:黑暗武士:武器CD调整
Browse files Browse the repository at this point in the history
  • Loading branch information
wxh0402 committed Feb 8, 2021
1 parent a3fd437 commit cc77145
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions Characters/黑暗武士.py
Expand Up @@ -7,25 +7,23 @@ def 等效CD(self, 武器类型 , 输出类型):
if self.计算CD != 0:
return round(self.计算CD, 1)
# 大恍惚CD加速只加速15级以上的,15级以下无效,所以DK在拿15级以下的技能垫技能的时候,会造成整个下排CD加速无效的BUG
if self.所在等级 <= 15:
return round(self.CD * 武器冷却惩罚(武器类型,输出类型,self.版本), 1)
return round(self.CD / self.恢复 * 武器冷却惩罚(武器类型,输出类型,self.版本), 1)
# if self.类型 == '物理':
# if 武器类型 == '短剑':
# return round(self.CD / self.恢复 * 1.00, 1)
# if 武器类型 == '太刀':
# return round(self.CD / self.恢复 * 0.95, 1)
# if 武器类型 == '钝器':
# return round(self.CD / self.恢复 * 1.05, 1)
# if 武器类型 == '巨剑':
# return round(self.CD / self.恢复 * 1.10, 1)
# if 武器类型 == '光剑':
# return round(self.CD / self.恢复 * 0.90, 1)
# else:
# if 武器类型 == '短剑':
# return round(self.CD / self.恢复 * 1.05, 1)
# else:
# return round(self.CD / self.恢复 * 1.00, 1)

if self.类型 == '物理':
if 武器类型 == '短剑':
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 1.00, 1)
if 武器类型 == '太刀':
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 0.95, 1)
if 武器类型 == '钝器':
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 1.05, 1)
if 武器类型 == '巨剑':
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 1.10, 1)
if 武器类型 == '光剑':
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 0.90, 1)
else:
if 武器类型 == '短剑':
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 1.05, 1)
else:
return round(self.CD / (1.0 if self.所在等级 <= 15 else self.恢复) * 1.00, 1)

class 黑暗武士技能0(黑暗武士主动技能):
名称 = '挑击'
Expand Down

0 comments on commit cc77145

Please sign in to comment.