| | |
| | | import NPCCommon
|
| | | import BuffSkill
|
| | | import ChNPC
|
| | |
|
| | | import GameObj
|
| | | import random
|
| | |
|
| | | #当前副本地图的状态
|
| | |
| | |
|
| | | 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)
|
| | |
| | | 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)
|