| | |
| | | import PlayerFamily
|
| | | import GameWorld
|
| | | import DBDataMgr
|
| | | import ObjPool
|
| | |
|
| | | import time
|
| | |
|
| | |
| | | return
|
| | |
|
| | | def SyncTaofaInfo(curPlayer):
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCFamilyTaofaInfo)
|
| | | clientPack = ChPyNetSendPack.tagSCFamilyTaofaInfo()
|
| | | clientPack.BuZhenState = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilyTaofaBuZhenState)
|
| | | clientPack.AtkCount = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilyTaofaCnt)
|
| | | clientPack.ItemAddCount = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FamilyTaofaItemAddCnt)
|
| | |
| | |
|
| | | def SyncTaofaAtkRet(curPlayer, atkType, hurtList, awardItemList):
|
| | | atkHurtList = []
|
| | | objPool = ObjPool.GetPoolMgr()
|
| | | for totalHurt, isSuper in hurtList:
|
| | | atkHurt = objPool.acquire(ChPyNetSendPack.tagSCFamilyTaofaAtkHurt)
|
| | | atkHurt = ChPyNetSendPack.tagSCFamilyTaofaAtkHurt()
|
| | | atkHurt.IsSuper = isSuper
|
| | | atkHurt.HurtValue = totalHurt % ChConfig.Def_PerPointValue
|
| | | atkHurt.HurtValueEx = totalHurt / ChConfig.Def_PerPointValue
|
| | |
| | |
|
| | | itemList = []
|
| | | for itemID, itemCount in awardItemList:
|
| | | item = objPool.acquire(ChPyNetSendPack.tagSCFamilyTaofaAtkItem)
|
| | | item = ChPyNetSendPack.tagSCFamilyTaofaAtkItem()
|
| | | item.ItemID = itemID
|
| | | item.Count = itemCount
|
| | | itemList.append(item)
|
| | |
|
| | | clientPack = objPool.acquire(ChPyNetSendPack.tagSCFamilyTaofaAtkRet)
|
| | | clientPack = ChPyNetSendPack.tagSCFamilyTaofaAtkRet()
|
| | | clientPack.AtkType = atkType
|
| | | clientPack.HurtList = atkHurtList
|
| | | clientPack.HurtCount = len(clientPack.HurtList)
|