From d33b1530147a412e88a32bf1168ca3ac6e9718c6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 20 三月 2026 10:35:50 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(左慈所有技能;技能目标细分增加11-受控目标优先;敌友目标增加3-友方(一定不含自己);7011效果改为无技能目标时触发;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
index 83033e1..ede0efe 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ReadChConfig.py
@@ -257,12 +257,27 @@
             GameWorld.Log('无法找到文件 = %s'%(filePath))
             raise Exception('无法找到文件 = %s'%(filePath))
         
+        batFilePath = ChConfig.GetServersRoutePath() + "\\Config\\BattleServer.json"
+        if not os.path.isfile(batFilePath):
+            GameWorld.Log('无法找到文件 = %s'%(batFilePath))
+            raise Exception('无法找到文件 = %s'%(batFilePath))
+        
         f = open(filePath, 'r')
-        strMsg = f.read()
+        serverDict = eval(f.read())
         f.close()
         
-        ServersConfigDict = eval(strMsg)
+        f = open(batFilePath, 'r')
+        batServerDict = eval(f.read())
+        f.close()
         
+        groupName = GameWorld.GetServerGroupName()
+        ServersConfigDict = {}
+        ServersConfigDict = {int(k):v for k, v in serverDict.items()}
+        for batServerID, mapID in batServerDict.items():
+            if batServerID in ServersConfigDict:
+                continue
+            ServersConfigDict[batServerID] = [groupName, mapID, ShareDefine.serverType_Battle]
+            
     return ServersConfigDict
 
 ## PyMongoDataServer.ini配置读取

--
Gitblit v1.8.0