@@ -255,6 +255,16 @@ class CalcEquipMixin(CharacterBase):
|
||||
def calc_oaths(self):
|
||||
"""计算装备基础效果"""
|
||||
effects = get_equipment(self.equVersion).funs
|
||||
for item in self.charOathInfo:
|
||||
oath = item.oathInfo
|
||||
if oath is None:
|
||||
continue
|
||||
fun = effects.execture(f'oath_{oath.id}')
|
||||
if fun is None:
|
||||
continue
|
||||
filtered_dict = {k: v for k, v in oath.__dict__.items() if k[0].isupper()}
|
||||
self.SetStatus(**filtered_dict)
|
||||
fun(self)
|
||||
pass
|
||||
|
||||
def calc_avatar(self, avatar: dict):
|
||||
|
||||
Reference in New Issue
Block a user