xdh
2019-03-13 9e96321acfae28fe3d086c58ad858db0c6df77a2
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
@@ -966,29 +966,32 @@
    return
## 通知公共部位强化等级
def NotifyEquipPartPlusLV(curPlayer, packType=None, index=None):
def NotifyEquipPartPlusLV(curPlayer, packType=IPY_GameWorld.rptEquip, index=None):
    ePartStarLVPack = ChPyNetSendPack.tagMCEquipPartPlusInfo()
    ePartStarLVPack.Clear()
    ePartStarLVPack.InfoList = []
    
    for pType, indexList in ChConfig.Pack_EquipPart_CanPlusStar.items():
    syncIndexList = []
    if index == None:
        equipMaxClasslv = IpyGameDataPY.GetFuncCfg('EquipMaxClasslv')
        for equipPlace in ChConfig.Pack_EquipPart_CanPlusStar.get(packType, []):
            for classlv in xrange(1, equipMaxClasslv+1):
                ipyData = IpyGameDataPY.GetIpyGameData('EquipPlaceIndexMap', classlv, equipPlace)
                if not ipyData:
                    continue
                syncIndexList.append(ipyData.GetGridIndex())
    else:
        syncIndexList = [index]
        
        if packType != None and packType != pType:
            continue
        for i in indexList:
            if packType != None:
                if index != None and index != i:
                    continue
            ePartStarLV = ChPyNetSendPack.tagMCEquipPartPlusLV()
            ePartStarLV.Clear()
            ePartStarLV.PackType = pType
            ePartStarLV.EquipIndex = i
            ePartStarLV.EquipPartStarLV = GetEquipPartPlusLV(curPlayer, pType, i)
            ePartStarLV.Proficiency = GetEquipPartProficiency(curPlayer, pType, i)
            ePartStarLV.EvolveLV = GetEquipPartPlusEvolveLV(curPlayer, pType, i)
            ePartStarLVPack.InfoList.append(ePartStarLV)
    for i in syncIndexList:
        ePartStarLV = ChPyNetSendPack.tagMCEquipPartPlusLV()
        ePartStarLV.Clear()
        ePartStarLV.PackType = packType
        ePartStarLV.EquipIndex = i
        ePartStarLV.EquipPartStarLV = GetEquipPartPlusLV(curPlayer, packType, i)
        ePartStarLV.Proficiency = GetEquipPartProficiency(curPlayer, packType, i)
        ePartStarLV.EvolveLV = GetEquipPartPlusEvolveLV(curPlayer, packType, i)
        ePartStarLVPack.InfoList.append(ePartStarLV)
            
    ePartStarLVPack.Count = len(ePartStarLVPack.InfoList)
    NetPackCommon.SendFakePack(curPlayer, ePartStarLVPack)