装备:套装属性修改
This commit is contained in:
@@ -511,7 +511,7 @@ export class EquipHandler {
|
||||
return resResult(STATUS.WRONG_PARMS);
|
||||
if (goodInfo.lvLimited > hero.lv)
|
||||
return resResult(STATUS.EQUIP_LEVEL_LIMIT);
|
||||
if(checkEquipCanPut(hid, equip.id))
|
||||
if(!checkEquipCanPut(hid, equip.id))
|
||||
return resResult(STATUS.EQUIP_NOT_EQUIPED_HERO);
|
||||
let index = findIndex(hero.ePlace, { id });
|
||||
if (index < 0)
|
||||
@@ -572,7 +572,9 @@ export class EquipHandler {
|
||||
let sortedAndSuitEquips = sortEquips.filter(equipInfos => { // 筛选可穿的
|
||||
let { id, lvLimited, ePlaceId } = equipInfos;
|
||||
return lv >= lvLimited && checkEquipCanPut(hid, id) && curEPlace.id == ePlaceId;
|
||||
}).sort((a, b) => { // 排序按:战力 => 根据位置看个别属性 => 品质
|
||||
})
|
||||
console.log('sortedAndSuitEquips', JSON.stringify(sortedAndSuitEquips, null, 4))
|
||||
sortedAndSuitEquips = sortedAndSuitEquips.sort((a, b) => { // 排序按:战力 => 根据位置看个别属性 => 品质
|
||||
if (b.ce - a.ce != 0) return b.ce - a.ce;
|
||||
let abilityA = a.goodsAbility.get(sortAttrId) || 0;
|
||||
let abilityB = b.goodsAbility.get(sortAttrId) || 0;
|
||||
|
||||
Reference in New Issue
Block a user