6912 【2.0】【后端】洗炼、升星广播显示穿戴装备信息
| | |
| | | playControl.RefreshPlayerAttrState()
|
| | |
|
| | | if updPartStar in IpyGameDataPY.GetFuncEvalCfg('EquipPartStarNotify'):
|
| | | PlayerControl.WorldNotify(0, "StarLevelUp", [curPlayer.GetPlayerName(), curEquip.GetItemTypeID(), updPartStar])
|
| | | itemID = curEquip.GetItemTypeID()
|
| | | userData = curEquip.GetUserData()
|
| | | guid = ItemCommon.CacheNotifyEquipDetailInfo(curPlayer, curEquip)
|
| | | msgParamList = [curPlayer.GetPlayerName(), itemID, userData, guid, updPartStar]
|
| | | PlayerControl.WorldNotify(0, "StarLevelUp", msgParamList)
|
| | | EventShell.EventRespons_EquipStarUp(curPlayer)
|
| | | return
|
| | |
|
| | |
| | | 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)
|
| | |
| | | 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)
|
| | |
| | | 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):
|
| | |
| | | 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):
|
| | |
| | | if not classEquip or classEquip.IsEmpty():
|
| | | continue
|
| | | equipID = classEquip.GetItemTypeID()
|
| | | equipStar = ChEquip.GetEquipPartStarByRank(curPlayer, index, classEquip)
|
| | | classItems.append([equipID, equipStar])
|
| | | star = ChEquip.GetEquipPartStarByRank(curPlayer, index, classEquip)
|
| | | classItems.append([equipID, star])
|
| | |
|
| | | cacheInfo = [guid, itemID, equipStar, plusLV, plusEvolveLV, washLV, washValueList, stoneIDList, classItems]
|
| | | cacheInfo = json.dumps(cacheInfo, ensure_ascii=False)
|