战力:修改套装计算方式
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user