Merge pull request #400 from Rrrrrrray/master

🐞 fix:  星铁角色养成不按照指定技能等级计算
This commit is contained in:
Ca(HCO₃)₂ 2024-04-01 07:03:09 +08:00 committed by GitHub
commit 7cde312037
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 8 deletions

View File

@ -157,14 +157,15 @@ export default class Calculator extends base {
}, },
skill_list: [] skill_list: []
} }
for (let data of skillList) {
let skill = { let srSkills = this.setSkill.slice(2)
item_id: data.point_id, skillList.forEach((v, k) => {
cur_level: data.cur_level, body.skill_list.push({
target_level: data.target_level item_id: v.point_id,
} cur_level: v.cur_level,
if (Number(this.setSkill[0]) >= data.min_level_limit) body.skill_list.push(skill) target_level: Number(srSkills[k]) || v.target_level
} })
})
} else { } else {
skillList = skillList.filter((item) => item.max_level != 1) skillList = skillList.filter((item) => item.max_level != 1)