From 4b411bb19ecb34dacf6792220d5ffb79afb9d022 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 19 四月 2019 17:55:40 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py | 13 +++++++++++++
1 files changed, 13 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 27232bd..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
@@ -21,6 +21,7 @@
#导入
import GameLogic_ZhuXianBoss
import GameLogic_HorsePetBoss
+import GameLogic_AllFamilyBoss
import GameWorld
import IPY_GameWorld
import ChConfig
@@ -88,6 +89,18 @@
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