From c65290e4ebcbecf93fbde371947ff99feab7d29d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 26 六月 2024 14:41:51 +0800
Subject: [PATCH] 10191 【越南】【主干】【港台】新增多种培养材料副本

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
index 207155a..05b356d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
@@ -2364,6 +2364,27 @@
             return dataMapID
     return mapID
 
+def GetGeneralTrainMapIDList():
+    ## 获取通用养成副本
+    GeneralTrainMapIDList = IpyGameDataPY.GetConfigEx("GeneralTrainMapIDList")
+    if not GeneralTrainMapIDList:
+        GeneralTrainMapIDList = []
+        ipyDataMgr = IpyGameDataPY.IPY_Data()
+        for i in xrange(ipyDataMgr.GetFBGeneralTrainCount()):
+            ipyData = ipyDataMgr.GetFBGeneralTrainByIndex(i)
+            dMapID = ipyData.GetDataMapID()
+            if dMapID not in GeneralTrainMapIDList:
+                GeneralTrainMapIDList.append(dMapID)
+        GeneralTrainMapIDList = IpyGameDataPY.SetConfigEx("GeneralTrainMapIDList", GeneralTrainMapIDList)
+        #GameWorld.Log("加载GeneralTrainMapIDList=%s" % GeneralTrainMapIDList)
+        
+    return GeneralTrainMapIDList
+
+def GetClientCustomScene():
+    ## 获取前端自定义副本场景
+    mapIDList = GetGeneralTrainMapIDList()
+    return mapIDList + ChConfig.ClientCustomScene
+
 ## 同步进入副本时间
 #  @param curPlayer 玩家
 #  @param syncMapID 同步的地图,默认0为全部
@@ -2427,6 +2448,7 @@
         mapInfo.EnterCntTotal = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_EnterFbCntTotal % mID)
         mapInfo.RecoverCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_RecoverFbCnt % mID)
         mapInfo.ItemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mID)
+        mapInfo.PassLineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBPassLineID % mID)
         
         for keyNum in range(ChConfig.Def_FBStar_MaxKeyCnt):
             gradeValue = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_PlayerFBStar_MapId % (mID, keyNum))

--
Gitblit v1.8.0