update
This commit is contained in:
@@ -284,24 +284,28 @@ class CalcEquipMixin(CharacterBase):
|
||||
|
||||
def calc_oath_upgrade(self):
|
||||
"""计算装备基础效果"""
|
||||
for index,item in enumerate(self.charOathInfo):
|
||||
# 誓约升级效果
|
||||
if item.oathInfo and item.oathInfo.itemDetailType == '誓约':
|
||||
for upgrade in item.upgrade:
|
||||
oath = next(
|
||||
(item for item in self.charOathInfo
|
||||
if item.oathInfo is not None and item.oathInfo.itemDetailType == '誓约'),
|
||||
None,
|
||||
)
|
||||
if oath is not None:
|
||||
for index, upgrade in enumerate(oath.upgrade):
|
||||
if index <= 3:
|
||||
if upgrade == 1:
|
||||
self.SetStatus(SkillAttack=0.04, Buffer=800)
|
||||
pass
|
||||
elif upgrade == 2:
|
||||
self.SetSkillCD(cd=0.08)
|
||||
self.SetStatus(EquEffectRatio=0.04, Buffer=800)
|
||||
elif upgrade == 3:
|
||||
# 誓约积分 +25
|
||||
item.oathInfo.Point += 25
|
||||
else:
|
||||
if upgrade == 1:
|
||||
self.SetStatus(SpeedA=0.04, SpeedM=0.04, SpeedR=0.04, SkillAttack=0.04, Buffer=800)
|
||||
elif upgrade == 2 or upgrade == 3:
|
||||
oath.oathInfo.Point += 25
|
||||
elif upgrade == 1:
|
||||
self.SetStatus(
|
||||
SpeedA=0.04, SpeedM=0.04, SpeedR=0.04,
|
||||
SkillAttack=0.04, Buffer=800,
|
||||
)
|
||||
elif upgrade in (2, 3):
|
||||
self.SetStatus(SkillAttack=0.04, Buffer=800)
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -69,7 +69,7 @@ class CharacterOathInfo:
|
||||
if info is None:
|
||||
info = {}
|
||||
if info.get('upgrade') is None:
|
||||
info['upgrade'] = [0, 0, 0, 0]
|
||||
info['upgrade'] = [0, 0, 0, 0, 0, 0, 0, 0]
|
||||
self.__dict__.update(info)
|
||||
self.id = str(self.id)
|
||||
equipments = equipments or get_equipment(equVerison)
|
||||
|
||||
Reference in New Issue
Block a user