战力:修改套装计算方式

This commit is contained in:
luying
2022-03-30 19:20:40 +08:00
parent 83dc974632
commit 170a1b96bc
6 changed files with 33 additions and 38 deletions
+5 -9
View File
@@ -307,15 +307,11 @@ export class CalCe {
}
let minStar = Math.min(...suitStars);
let seids: number[] = [];
for(let { star, seid } of dicEquipSuit.effect) {
if(minStar >= star) seids.push(seid);
}
let { ratioUp } = this.addSeidEffect(seids);
for(let [attrId, val] of ratioUp) {
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
heroAttr.equipSuit = val;
for(let { star, id, val } of dicEquipSuit.effect) {
if(minStar >= star) {
let heroAttr = this.data.getHeroAttrByHidAndId(hid, id);
heroAttr.equipSuit = val;
}
}
}