xdh
2019-04-18 d6bf998381c0aed3ed46940493fc6b39c05f5a28
6457 缥缈事件通知修改
1个文件已修改
9 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
@@ -254,20 +254,23 @@
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)