From 04643ea031c7434a7bb019aa1c05aa283ed7372d Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 29 九月 2018 03:19:38 +0800 Subject: [PATCH] 3928 【后端】增加多倍经验活动在活动期间的循环广播 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py index 43083e9..5e4ced9 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py @@ -40,7 +40,7 @@ import NPCCommon import BuffSkill import ChNPC - +import GameObj import random #当前副本地图的状态 @@ -807,7 +807,7 @@ objID = curNPC.GetID() npcID = curNPC.GetNPCID() - g_curBossDict["%s_%s" % (objID, npcID)] = [objID, npcID, curNPC.GetHP(), curNPC.GetMaxHP(), + g_curBossDict["%s_%s" % (objID, npcID)] = [objID, npcID, GameObj.GetHP(curNPC), GameObj.GetMaxHP(curNPC), curNPC.GetPosX(), curNPC.GetPosY()] __CheckOutTimeBuff(tick) @@ -1142,7 +1142,7 @@ hpPerList = sorted(hpPerDict.keys(), reverse = True) maxBuffCnt = bossBuffInfo[2] - nowHPPer = defender.GetHP() * 100 / defender.GetMaxHP() # 当前百分比 + nowHPPer = GameObj.GetHP(defender) * 100 / GameObj.GetMaxHP(defender) # 当前百分比 gameFB = GameWorld.GetGameFB() hpPerMarkKey = FBDict_BossHPPerMark % (objID, npcID) hpPerLogicMark = gameFB.GetGameFBDictByKey(hpPerMarkKey) -- Gitblit v1.8.0