This commit is contained in:
2025-04-25 09:24:16 +08:00
parent a43b8defb8
commit ea75a617e5
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -638,7 +638,7 @@ class Character(CharacterProperty):
effects = get_equipment(self.equVersion).funs
for detail in [(item.equInfo, item.fusionInfo, item.enchant, item.emblem_0, item.emblem_1) for item in filter(lambda x: x.equInfo is not None, self.charEquipInfo.values())]:
equ = detail[0]
if equ is None and equ.detailType == '副武器':
if equ is None and equ.itemType == '副武器':
return
fusion = detail[1]
enchat = detail[2]
@@ -1113,3 +1113,15 @@ class classChange(Character):
self.职业 = '剑魂'
super().__init__(equVersion, __name__)
def AddSkillLv(self, min: int, max: int, lv: int, type=-1) -> None:
"""
增加技能等级
type: -1 全部, 0 被动, 1 主动
"""
for skill in self.skills:
# 四个武器精通不享受技能范围等级加成
if min <= skill.learnLv <= max and skill.name not in ['太刀精通', '巨剑精通', '短剑精通', '钝器精通']:
skillType = 'all' if type == -1 else ('active' if type == 1 else 'passive')
if (skillType == 'all' or skill.type == skillType) and skill.lv > 0:
skill.lv += lv