hxp
2020-01-09 f38f1d13f83bd005eab8a101173c916d03163dc7
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipWash.py
@@ -102,6 +102,13 @@
        return
    equipPlace = ipyData.GetEquipPlace()
    classLV = ipyData.GetClassLV()
    funcPlusMinClassInfo = IpyGameDataPY.GetFuncEvalCfg("EquipPlusByFuncID", 1, {})
    funcID = ShareDefine.GameFuncID_EquipWash
    if str(funcID) in funcPlusMinClassInfo:
        funcMinClassLV = funcPlusMinClassInfo[str(funcID)]
        if classLV < funcMinClassLV:
            GameWorld.Log("该装备阶无法洗练! classLV=%s < funcMinClassLV=%s" % (classLV, funcMinClassLV), playerID)
            return
    washType = GetEquipWashType(equipPlace)
    if washType is None:
        GameWorld.Log("该装备位无法洗练! equipPlace=%s" % (equipPlace), playerID)
@@ -308,6 +315,11 @@
    ipyData = IpyGameDataPY.GetIpyGameDataByCondition('EquipPlaceIndexMap', {'GridIndex':equipPackindex})
    if not ipyData:
        return
    curPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
    curEquip = curPack.GetAt(equipPackindex)
    if not curEquip or curEquip.IsEmpty():
        GameWorld.DebugLog("OnEquipWashAttrChangeOK() equip is empty")
        return
    equipPlace = ipyData.GetEquipPlace()
    classLV = ipyData.GetClassLV()
    washLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_EquipWashLV % equipPackindex)
@@ -329,7 +341,7 @@
        if washLV >= maxWashLV:
            GameWorld.DebugLog("已达到最大洗练等级,不可升级!", playerID)
            return
        if CheckEquipWashLVUp(curPlayer, equipPackindex, classLV, equipPlace, washLV, washData):
        if CheckEquipWashLVUp(curPlayer, curEquip, equipPackindex, washLV, washData):
            RefreshEquipWashAttr(curPlayer, classLV)
            Sycn_EquipWashInfo(curPlayer, equipPackindex)
            EquipWashSuccess(curPlayer)
@@ -358,7 +370,7 @@
    Sycn_EquipWashInfo(curPlayer, equipPackindex)
    return
def CheckEquipWashLVUp(curPlayer, equipPackindex, classLV, equipPlace, washLV, washData):
def CheckEquipWashLVUp(curPlayer, curEquip, equipPackindex, washLV, washData):
    # 检查洗练类型升级
    
    for attrNum in range(1, Def_EquipWashMaxAttrCount + 1):
@@ -370,7 +382,11 @@
    SetEquipWashLV(curPlayer, equipPackindex, washLV)
    
    # 洗练广播
    PlayerControl.WorldNotify(0, "WashCongratulation", [curPlayer.GetPlayerName(), curPlayer.GetPlayerID(), classLV, equipPlace, washLV])
    itemID = curEquip.GetItemTypeID()
    userData = curEquip.GetUserData()
    guid = ItemCommon.CacheNotifyEquipDetailInfo(curPlayer, curEquip)
    msgParamList = [curPlayer.GetPlayerName(), itemID, userData, guid, washLV]
    PlayerControl.WorldNotify(0, "WashCongratulation", msgParamList)
    return True
def SetEquipWashLV(curPlayer, index, setWashLV):