| | |
| | | import PlayerGubao
|
| | | import PlayerCoin
|
| | | import ChConfig
|
| | | import ObjPool
|
| | |
|
| | | import time
|
| | |
|
| | | # 战令类型
|
| | |
| | | rewardList = []
|
| | | for ipyData in ipyDataList:
|
| | | rewardIndex = ipyData.GetRewardIndex()
|
| | | reward = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagMCZhanling)
|
| | | reward = ChPyNetSendPack.tagMCZhanling()
|
| | | reward.Clear()
|
| | | reward.NeedValue = ipyData.GetNeedValue()
|
| | | reward.FreeRewardState = 1 if GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_ZhanlingRewardFree, rewardIndex, True, [zhanlingType]) else 0
|
| | |
| | | reward.ZLRewardStateH = 1 if GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_ZhanlingRewardH, rewardIndex, True, [zhanlingType]) else 0
|
| | | rewardList.append(reward)
|
| | |
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagMCZhanlingInfo)
|
| | | clientPack = ChPyNetSendPack.tagMCZhanlingInfo()
|
| | | clientPack.Clear()
|
| | | clientPack.ZhanlingType = zhanlingType
|
| | | clientPack.IsActivite = 1 if curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ZhanlingState)&pow(2, zhanlingType) else 0
|