| | |
| | |
|
| | | def NotifyVisitFairyDomainInfo(curPlayer, fdEventList=[], isAll=1):
|
| | | if not fdEventList:
|
| | | syncFDEventList = []
|
| | | otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)
|
| | | maxEventCnt = max([info[1] for info in otherCntRateList]) + 1 #最大可出现事件个数
|
| | | for i in xrange(maxEventCnt):
|
| | | fdEventID = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainEventID % i)
|
| | | if fdEventID:
|
| | | fdEventList.append(fdEventID)
|
| | | |
| | | syncFDEventList.append(fdEventID)
|
| | | else:
|
| | | syncFDEventList = fdEventList
|
| | |
|
| | | packData = ChPyNetSendPack.tagMCFairyDomainInfo()
|
| | | packData.IsAll = isAll
|
| | | packData.State = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainState)
|
| | | packData.Energy = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainEnergy)
|
| | | packData.VisitCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainVisitCnt)
|
| | | packData.InfoList = []
|
| | | for fdeventID in fdEventList:
|
| | | for fdeventID in syncFDEventList:
|
| | | fdeventData = ChPyNetSendPack.tagMCFairyDomainEvent()
|
| | | fdeventData.EventID = fdeventID
|
| | | fdeventData.EventState = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainEventState % fdeventID)
|