feat:优化职业技能关联实现

This commit is contained in:
2026-10-13 15:57:28 +08:00
parent 15c3bff467
commit 7dc5f4cde5
20 changed files with 875 additions and 161 deletions
@@ -682,7 +682,7 @@ class Skill22(PassiveSkill):
def effect(self, old, new):
skills = []
for i in self.char.skills:
if i.type == "active" and i.learnLv not in [50,85,100] and i.damage and i.lv > 0:
if i.type == "active" and i.learnLv not in [50,85,100] and i.damage and self.char.skill_effects.is_learned(i):
skills.append(i.name)
self.associate = [{"type":"+lv","data":[0] + [1]*self.maxLv,"ratio":1,"skills":skills}]
super().effect(old, new)