dev
This commit is contained in:
@@ -638,7 +638,7 @@ class Character(CharacterProperty):
|
|||||||
effects = get_equipment(self.equVersion).funs
|
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())]:
|
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]
|
equ = detail[0]
|
||||||
if equ is None and equ.detailType == '副武器':
|
if equ is None and equ.itemType == '副武器':
|
||||||
return
|
return
|
||||||
fusion = detail[1]
|
fusion = detail[1]
|
||||||
enchat = detail[2]
|
enchat = detail[2]
|
||||||
|
|||||||
@@ -1113,3 +1113,15 @@ class classChange(Character):
|
|||||||
self.职业 = '剑魂'
|
self.职业 = '剑魂'
|
||||||
|
|
||||||
super().__init__(equVersion, __name__)
|
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
|
||||||
Reference in New Issue
Block a user