This commit is contained in:
shenjack 2024-04-05 13:05:54 +08:00
parent 4c18b05b5c
commit 39f5b5619c
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -17076,11 +17076,11 @@ T.Plr.prototype = {
}
this.q = attrs
}
if(diyskills){
console.log("this.k1",this.k1)
if (diyskills) {
console.log("this.k1", this.k1)
this.diy_skills(diyskills)
}else this_.dm(C.Array.cL(this_.t, $.au()), C.Array.cL(this_.E, $.au())) // initSkills
}else{
} else this_.dm(C.Array.cL(this_.t, $.au()), C.Array.cL(this_.E, $.au())) // initSkills
} else {
this_.dm(C.Array.cL(this_.t, $.au()), C.Array.cL(this_.E, $.au())) // initSkills
}
@ -17194,17 +17194,17 @@ T.Plr.prototype = {
skills.push(new T.SkillVoid(0))
skills.push(new T.SkillVoid(0))
},
diy_skills(diyskills){
diy_skills(diyskills) {
// MARK: 自定义技能
var skills=this.k1
var skills = this.k1
// 遍历diyskills字典的键
for (var key in diyskills) {
// 遍历skills数组中的对象
for (var i = 0; i < skills.length; i++) {
if (skills[i].name === key) {
skills[i].f = diyskills[key];
break;
}
if (skills[i].name === key) {
skills[i].f = diyskills[key];
break;
}
}
}