Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-27 00:18:02 +08:00
co-authored by Copilot
parent 32e6d47ce4
commit 18ac23caa3
13 changed files with 827 additions and 54 deletions
@@ -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):