| | |
| | | def Sycn_MagicWeaponLV(curPlayer, mwID= -1):
|
| | | #通知法宝等级信息
|
| | | if mwID == -1:
|
| | | isAll = True
|
| | | needCalList = []
|
| | | ipyDataMgr = IpyGameDataPY.IPY_Data()
|
| | | for i in xrange(ipyDataMgr.GetTreasureCount()):
|
| | | ipyData = ipyDataMgr.GetTreasureByIndex(i)
|
| | | needCalList.append(ipyData.GetID())
|
| | | else:
|
| | | isAll = False
|
| | | needCalList = [mwID]
|
| | | sendPack = ChPyNetSendPack.tagMCMagicWeaponLVInfo()
|
| | | sendPack.InfoList = []
|
| | |
| | | state = GetIsClickMagicWeapon(curPlayer, mwID)
|
| | | FBPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWFBPassLevel % mwID)
|
| | | isWear = GetIsWearMagicWeapon(curPlayer, mwID)
|
| | | if not mwLv and not curUpExp and not state and not FBPassLV and not isWear:
|
| | | if isAll and not mwLv and not curUpExp and not state and not FBPassLV and not isWear:
|
| | | continue
|
| | | pack = ChPyNetSendPack.tagMCMagicWeaponInfo()
|
| | | pack.MWID = mwID
|
| | |
| | | hasWearCnt +=1
|
| | |
|
| | | SetMagicWeaponWearState(curPlayer, mwID, isWear)
|
| | | CalcMagicWeaponAttr(curPlayer)
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
|
| | | Sycn_MagicWeaponLV(curPlayer, mwID)
|
| | | return
|
| | |
|