xdh
2019-03-26 6274c5968871f06e479bf138259c433f5fd7534f
6351 【后端】【2.1】新版骑宠争夺(查询血量)
2个文件已修改
16 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_HorsePetBoss.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_HorsePetBoss.py
@@ -550,7 +550,7 @@
    remainHP = GetBossRemainHP(lineID, tick)
    totalHP = __GetBossTotalHP(lineID)
    if not totalHP:
        return 0
        return 100
    return remainHP * 100 / totalHP
def CurFBLineBOSSID(lineID= -1):
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_FBLinePlayerCnt.py
@@ -20,6 +20,7 @@
#导入
import GameLogic_ZhuXianBoss
import GameLogic_HorsePetBoss
import GameWorld
import IPY_GameWorld
import ChConfig
@@ -74,6 +75,19 @@
            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)]
    else:
        return
    return [tagMapID, fbLinePlayerCntDict]