| | |
| | | import ReadChConfig
|
| | | import PlayerActivity
|
| | | import ChPyNetSendPack
|
| | | import DataRecordPack
|
| | | import NetPackCommon
|
| | | import IpyGameDataPY
|
| | | import ShareDefine
|
| | |
| | | import FBLogic
|
| | | import ChConfig
|
| | | import PlayerGoldInvest
|
| | | import ObjPool
|
| | |
|
| | | import random
|
| | | import json
|
| | |
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBPassLineID % mapID, funcLineID)
|
| | | if isNotify:
|
| | | Sync_FBPlayerFBInfoData(curPlayer, mapID)
|
| | | DataRecordPack.DR_FBPass(curPlayer, mapID, funcLineID)
|
| | | return
|
| | |
|
| | | def CheckCanEnterFBComm(curPlayer, mapID, lineID, fbIpyData, fbLineIpyData, reqEnterCnt=1, isNotify=True, isTeamAsk=False):
|
| | |
| | | return
|
| | | mapIDList = [mapIDInfo] if type(mapIDInfo) == int else mapIDInfo
|
| | |
|
| | | clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCFBInfoList)
|
| | | clientPack = ChPyNetSendPack.tagSCFBInfoList()
|
| | | clientPack.FBDataList = []
|
| | |
|
| | | for mapID in mapIDList:
|
| | | fbInfo = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCFBInfo)
|
| | | fbInfo = ChPyNetSendPack.tagSCFBInfo()
|
| | | fbInfo.MapID = mapID
|
| | | fbInfo.EnterCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FbEnterCnt % mapID)
|
| | | fbInfo.ADAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBADCnt % mapID)
|