@@ -158,6 +158,10 @@ class CalcEquipMixin(CharacterBase):
|
||||
self.charOathSkillId = '1'
|
||||
oathSkillEffect = []
|
||||
self.max_point = 0 if res['suit'] is None else res.get('suit', {}).get('point', 0)
|
||||
try:
|
||||
self.oath_max_point = oathSuitInfo.get(max_point_oath_suit, {}).get('point', 0)
|
||||
except:
|
||||
self.oath_max_point = 0
|
||||
self.oathSuitInfo = []
|
||||
self.oathSkillInfo = []
|
||||
# 当套装点数达到太初时,誓约技能生效
|
||||
@@ -193,10 +197,16 @@ class CalcEquipMixin(CharacterBase):
|
||||
if func is not None:
|
||||
# print(f'誓约技能 {skill.id} 生效')
|
||||
func(self)
|
||||
# 太初积分以上,每超过70点数增加1%技能攻击力
|
||||
if self.max_point >= 2550:
|
||||
skillAttack = (self.max_point - 2550) // 70 * 0.01
|
||||
buffer = (self.max_point - 2550) // 70 * 100
|
||||
skillAttack = (self.max_point - 2550) // 70 * 0.02
|
||||
buffer = (self.max_point - 2550) // 70 * 200
|
||||
self.SetStatus(SkillAttack=skillAttack, Buffer=buffer)
|
||||
# 誓约积分
|
||||
if self.oath_max_point >= 1200:
|
||||
self.SetSkillCD(1, 100, 0.185)
|
||||
SkillAttack, Buffer = equs.funs.oathPointEffect(self.oath_max_point)
|
||||
self.SetStatus(SkillAttack=SkillAttack, Buffer=Buffer)
|
||||
return res
|
||||
|
||||
def calc_equs(self):
|
||||
@@ -347,14 +357,14 @@ class CalcEquipMixin(CharacterBase):
|
||||
def calc_sundry(self, sundry: dict):
|
||||
"""计算杂项效果"""
|
||||
funs = get_equipment(self.equVersion).funs
|
||||
funs.execture('sundry_0')(
|
||||
self,
|
||||
sundry.get('medal_rarity', 0),
|
||||
sundry.get('medal_reinforce', 0),
|
||||
[sundry.get('medal_gem_0', 0), sundry.get('medal_gem_1', 0), sundry.get('medal_gem_2', 0), sundry.get('medal_gem_3', 0)],
|
||||
)
|
||||
# funs.execture('sundry_0')(
|
||||
# self,
|
||||
# sundry.get('medal_rarity', 0),
|
||||
# sundry.get('medal_reinforce', 0),
|
||||
# [sundry.get('medal_gem_0', 0), sundry.get('medal_gem_1', 0), sundry.get('medal_gem_2', 0), sundry.get('medal_gem_3', 0)],
|
||||
# )
|
||||
funs.execture('sundry_6')(self, sundry.get('adventure', 1))
|
||||
funs.execture('sundry_5')(self, sundry.get('fog', 1))
|
||||
# funs.execture('sundry_5')(self, sundry.get('fog', 1))
|
||||
funs.execture('sundry_7')(self, sundry.get('marriage_house', 0), sundry.get('marriage_ring', 0))
|
||||
funs.execture('sundry_9')(self, sundry.get('contract', 0))
|
||||
funs.execture('sundry_10')(
|
||||
|
||||
Reference in New Issue
Block a user