| | |
| | | import PlayerUniversalGameRec
|
| | | import PlayerCompensation
|
| | | import IpyGameDataPY
|
| | | import MergePlayer
|
| | | import PyGameDataStruct
|
| | | import PyDataManager
|
| | | import PlayerControl
|
| | |
| | | if lvLimit[0] <= findLV <= lvLimit[1]:
|
| | | playerCntDict[bossid] = playerCntDict.get(bossid, 0) + 1
|
| | | GameWorld.DebugLog(' boss等级信息对应本服在线人数 %s' % playerCntDict)
|
| | | |
| | | # 此处需要统计累加当前在跨服服务器的玩家
|
| | | mergeServerOnlinePlayerDict = MergePlayer.GetMergeServerOnlinePlayerInfo()
|
| | | for playerInfo in mergeServerOnlinePlayerDict.values():
|
| | | findLV = playerInfo[MergePlayer.Def_MSOLPlayer_LV]
|
| | | for bossid, lvLimit in bossRebornDict.items():
|
| | | if lvLimit[0] <= findLV <= lvLimit[1]:
|
| | | playerCntDict[bossid] = playerCntDict.get(bossid, 0) + 1
|
| | | GameWorld.DebugLog(' boss等级信息对应本服及跨服在线人数 %s' % playerCntDict)
|
| | |
|
| | | for bossid, curOnlineCnt in playerCntDict.items():
|
| | | SetBossOnlineHeroCnt(bossid, curOnlineCnt)
|