战力:修复装备属性覆盖而不累加问题
This commit is contained in:
@@ -274,7 +274,7 @@ export class CalCe {
|
||||
let equips = this.data.getEquipAttrsByHid(hid);
|
||||
for(let { hid, attrId, equipQuality } of equips) {
|
||||
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
||||
heroAttr.equipQuality = equipQuality;
|
||||
heroAttr.equipQuality += equipQuality;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -308,7 +308,7 @@ export class CalCe {
|
||||
let equips = this.data.getEquipAttrsByHid(hid);
|
||||
for(let { hid, attrId, equipStrength } of equips) {
|
||||
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
||||
heroAttr.equipStrength = equipStrength;
|
||||
heroAttr.equipStrength += equipStrength;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ export class CalCe {
|
||||
let equips = this.data.getEquipAttrsByHid(hid);
|
||||
for(let { hid, attrId, equipStar } of equips) {
|
||||
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
||||
heroAttr.equipStar = equipStar;
|
||||
heroAttr.equipStar += equipStar;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -386,7 +386,7 @@ export class CalCe {
|
||||
let equips = this.data.getEquipAttrsByHid(hid);
|
||||
for(let { hid, attrId, jewel } of equips) {
|
||||
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
||||
heroAttr.jewel = jewel;
|
||||
heroAttr.jewel += jewel;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ export class CalCe {
|
||||
let equips = this.data.getEquipAttrsByHid(hid);
|
||||
for(let { hid, attrId, stone } of equips) {
|
||||
let heroAttr = this.data.getHeroAttrByHidAndId(hid, attrId);
|
||||
heroAttr.stone = stone;
|
||||
heroAttr.stone += stone;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user