From 6551123a8a4a9c55380ebf4dff41c9d3bdbb2c47 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 15 四月 2019 17:10:07 +0800
Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(分流地图配置)
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py
index ff3f03e..81bd7b6 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFB.py
@@ -163,10 +163,10 @@
playerIDList, dataMapID, mapID, copyMapID = msgData
- if dataMapID == ChConfig.Def_FBMapID_CrossDemonKing:
- mapPosInfo = IpyGameDataPY.GetFuncEvalCfg("CrossDemonKingMap", 2)
- else:
+ dynamicLineMapDict = IpyGameDataPY.GetFuncEvalCfg("CrossDynamicLineMap", 1)
+ if dataMapID not in dynamicLineMapDict:
return
+ mapPosInfo = dynamicLineMapDict[dataMapID][0]
posX, posY = mapPosInfo[:2]
dist = mapPosInfo[2] if len(mapPosInfo) > 2 else 0
if dist > 0:
@@ -216,16 +216,11 @@
#GameWorld.DebugLog(" 等待中的玩家ID: %s" % copyMapObj.waitPlayerDict)
return mapID, copyMapID, openState
- if dataMapID == ChConfig.Def_FBMapID_CrossDemonKing:
- mapIDList = IpyGameDataPY.GetFuncEvalCfg("CrossDemonKingMap", 1)
- elif dataMapID == ChConfig.Def_FBMapID_CrossGrasslandLing:
- mapIDList = [dataMapID]
- elif dataMapID == ChConfig.Def_FBMapID_CrossGrasslandXian:
- mapIDList = [dataMapID]
- # 其他地图待扩展
- else:
+ dynamicLineMapDict = IpyGameDataPY.GetFuncEvalCfg("CrossDynamicLineMap", 1)
+ if dataMapID not in dynamicLineMapDict:
return
-
+ mapIDList = dynamicLineMapDict[dataMapID][1]
+
openMapID, openCopyMapID = 0, 0
for mapID in mapIDList:
maxCopyMapCount = PyGameData.g_crossMapCopyMapCountDict.get(mapID, 0)
--
Gitblit v1.8.0