xdh
2019-05-22 2332ab927da93b71fadfb7b3dfc330862b356ca7
6898 【后端】【2.0】缥缈仙域事件出现修改
1个文件已修改
11 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
@@ -142,10 +142,11 @@
            fdEventIDList.append(appointIpyData.GetEventID()) 
    else:
        fdEventTypeDict = {}
        #先随机奇遇事件
        fortuitousEventRate = IpyGameDataPY.GetFuncCfg('ImmortalDomain')
        if GameWorld.CanHappen(fortuitousEventRate):
            fdEventTypeDict[FDEventType0] = 1
        #先随机独立事件
        singleEventRateDict = IpyGameDataPY.GetFuncCfg('ImmortalDomain')
        for eventType, rate in singleEventRateDict.items():
            if GameWorld.CanHappen(rate):
                fdEventTypeDict[eventType] = 1
        
        otherCnt = GameWorld.GetResultByRandomList(otherCntRateList, 0)
        if otherCnt:
@@ -334,7 +335,7 @@
    return True
def NotifyVisitFairyDomainInfo(curPlayer, fdEventList=[], isAll=1):
def NotifyVisitFairyDomainInfo(curPlayer, fdEventList=None, isAll=1):
    if not fdEventList:
        syncFDEventList = []
        otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)