From 545986a8fdde345b28cf3004be84c6cfe79a3dc1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 四月 2019 11:29:12 +0800
Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(跨服分区逻辑优化,支持跨服妖王分区状态同步)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
index d1fc79b..1e0cda1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
@@ -20,6 +20,8 @@
 
 #导入
 import GameLogic_ZhuXianBoss
+import GameLogic_HorsePetBoss
+import GameLogic_AllFamilyBoss
 import GameWorld
 import IPY_GameWorld
 import ChConfig
@@ -74,6 +76,31 @@
             playerCnt = playerManager.GetPlayerCount()
             ownerName = GameLogic_ZhuXianBoss.GetFirstOwnerName(fblineID)
             fbLinePlayerCntDict[fblineID] = [playerCnt, ownerName]
+            
+    elif tagMapID == ChConfig.Def_FBMapID_HorsePetBoss:
+        for index in xrange(gameWorldManager.GetGameWorldCount()):
+            gameWorld = IPY_GameWorld.IPY_GameWorld(index)
+            playerManager = gameWorld.GetMapCopyPlayerManagerByFbIndex(index)
+            fblineID = gameWorld.GetPropertyID() - 1
+            if fblineID < 0:
+                continue
+            if not isAllLine and tagFBLineID != fblineID:
+                continue
+            playerCnt = playerManager.GetPlayerCount()
+            hpPer = GameLogic_HorsePetBoss.GetBossRemainHPPer(fblineID, tick)
+            fbLinePlayerCntDict[fblineID] = [playerCnt, str(hpPer)]
+    elif tagMapID == ChConfig.Def_FBMapID_AllFamilyBoss:
+        for index in xrange(gameWorldManager.GetGameWorldCount()):
+            gameWorld = IPY_GameWorld.IPY_GameWorld(index)
+            playerManager = gameWorld.GetMapCopyPlayerManagerByFbIndex(index)
+            fblineID = gameWorld.GetPropertyID() - 1
+            if fblineID < 0:
+                continue
+            if not isAllLine and tagFBLineID != fblineID:
+                continue
+            playerCnt = playerManager.GetPlayerCount()
+            hpPer = GameLogic_AllFamilyBoss.GetBossRemainHPPer(tick)
+            fbLinePlayerCntDict[fblineID] = [playerCnt, str(hpPer)]
     else:
         return
     return [tagMapID, fbLinePlayerCntDict]

--
Gitblit v1.8.0