new:添加誓约升级效果
This commit is contained in:
@@ -286,6 +286,15 @@ class CalcEquipMixin(CharacterBase):
|
||||
continue
|
||||
apply_uppercase_attrs(self, oath)
|
||||
fun(self)
|
||||
# 誓约升级效果
|
||||
for upgrade in item.upgrade:
|
||||
if upgrade == 1:
|
||||
self.SetStatus(SkillAttack=0.04,Buffer=800)
|
||||
pass
|
||||
if upgrade == 2:
|
||||
self.SetSkillCD(cd=0.08)
|
||||
self.SetStatus(EquEffectRatio=0.04,Buffer=800)
|
||||
pass
|
||||
pass
|
||||
|
||||
def calc_avatar(self, avatar: dict):
|
||||
|
||||
@@ -60,12 +60,16 @@ class CharacterOathInfo:
|
||||
"""誓约ID"""
|
||||
adaptation: int
|
||||
"""调适等级"""
|
||||
upgrade: list[int]
|
||||
"""誓约升级"""
|
||||
oathInfo: Union['Oath', None]
|
||||
"""誓约信息"""
|
||||
|
||||
def __init__(self, info=None, equVerison=0, position='', equipments=None) -> None:
|
||||
if info is None:
|
||||
info = {}
|
||||
if info.get('upgrade') is None:
|
||||
info['upgrade'] = [0, 0, 0, 0]
|
||||
self.__dict__.update(info)
|
||||
self.id = str(self.id)
|
||||
equipments = equipments or get_equipment(equVerison)
|
||||
@@ -73,6 +77,7 @@ class CharacterOathInfo:
|
||||
if oath is not None and position in oath.position:
|
||||
self.oathInfo = oath.adapt(self.adaptation)
|
||||
self.adaptation = min(self.adaptation, self.oathInfo.max_adaptation)
|
||||
self.upgrade = [int(upgrade) for upgrade in self.upgrade]
|
||||
else:
|
||||
self.oathInfo = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user