| | |
| | | import PlayerFace
|
| | | import PlayerHero
|
| | | import ChConfig
|
| | | import ObjPool
|
| | |
|
| | | import random
|
| | | import time
|
| | |
| | | if ipyData.GetUnlockWay() != 2:
|
| | | return
|
| | | itemID = ipyData.GetUnlockValue()
|
| | | itemCount = ipyData.GetUnlockNeedCnt()
|
| | | itemCount = ipyData.GetUpNeedCnt()
|
| | | if not itemID or not itemCount:
|
| | | return
|
| | | needItemList = [[itemID, itemCount]]
|
| | |
| | | state = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_TitleState, titleID)
|
| | | if not state and titleIDList == None:
|
| | | continue
|
| | | title = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCTitle)
|
| | | title = ChPyNetSendPack.tagSCTitle()
|
| | | title.TitleID = titleID
|
| | | title.State = state
|
| | | title.EndTime = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TitleEndTime % titleID)
|
| | |
| | | if not titleList:
|
| | | return
|
| | |
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCTitleInfo)
|
| | | clientPack = ChPyNetSendPack.tagSCTitleInfo()
|
| | | clientPack.TitleList = titleList
|
| | | clientPack.Count = len(clientPack.TitleList)
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|
| | |
| | | if ipyData.GetUnlockWay() != 2:
|
| | | return
|
| | | itemID = ipyData.GetUnlockValue()
|
| | | itemCount = ipyData.GetUnlockNeedCnt()
|
| | | itemCount = ipyData.GetUpNeedCnt()
|
| | | if not itemID or not itemCount:
|
| | | return
|
| | | needItemList = [[itemID, itemCount]]
|
| | |
| | | state = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_ModelState, modelID)
|
| | | if not state and modelIDList == None:
|
| | | continue
|
| | | model = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCModel)
|
| | | model = ChPyNetSendPack.tagSCModel()
|
| | | model.ModelID = modelID
|
| | | model.State = state
|
| | | model.EndTime = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ModelEndTime % modelID)
|
| | |
| | | if not modelList:
|
| | | return
|
| | |
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCModelInfo)
|
| | | clientPack = ChPyNetSendPack.tagSCModelInfo()
|
| | | clientPack.ModelList = modelList
|
| | | clientPack.Count = len(clientPack.ModelList)
|
| | | NetPackCommon.SendFakePack(curPlayer, clientPack)
|