From 2332ab927da93b71fadfb7b3dfc330862b356ca7 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 22 五月 2019 11:14:02 +0800
Subject: [PATCH] 6898 【后端】【2.0】缥缈仙域事件出现修改

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
index d4e57e5..603713b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
+++ b/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)

--
Gitblit v1.8.0