This commit is contained in:
2026-04-02 14:04:34 +08:00
parent 00e1147e8e
commit 6697955054
6 changed files with 80 additions and 95 deletions
+4 -4
View File
@@ -433,15 +433,15 @@ class Character(CharacterProperty):
# region 计算相关
def SetDetail(self, info: dict[str, dict]) -> None:
self.charEquipInfo = {}
self.charOathInfo = []
# self.charOathInfo = []
self.bindAwake = info.get('bindAwake', 50)
"""打造信息导入"""
for key in info['equips']:
# 导入部位打造信息、装备信息、贴膜信息
self.charEquipInfo[key] = CharacterEquipInfo(info['equips'][key], self.equVersion, key)
for key in info['oaths']:
# 导入誓约打造信息、誓约信息
self.charOathInfo.append(CharacterOathInfo(info['oaths'][key], self.equVersion, key))
# for key in info['oaths']:
# # 导入誓约打造信息、誓约信息
# self.charOathInfo.append(CharacterOathInfo(info['oaths'][key], self.equVersion, key))
def getInfo(self):
"""返回到前端信息"""
+2 -2
View File
@@ -96,8 +96,8 @@ class Equipments:
self.init_stones()
self.init_emblem()
self.init_jades()
self.init_oaths()
self.init_oath_suits()
# self.init_oaths()
# self.init_oath_suits()
self.engine.dispose()
def init_equs(self):
-1
View File
@@ -64,7 +64,6 @@ class CharacterOathInfo:
self.__dict__.update(info)
self.id = str(self.id)
oath = get_equipment(equVerison).oath_dict.get(self.id, None)
print(position, oath)
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)