| | |
| | | defendHurtList.Clear()
|
| | | return
|
| | |
|
| | | def GetBossLineID(npcID):
|
| | | sealDemonIpyData = IpyGameDataPY.GetIpyGameDataNotLog("SealDemon", npcID)
|
| | | if sealDemonIpyData:
|
| | | lineID = sealDemonIpyData.GetLineID()
|
| | | else:
|
| | | lineID = GameWorld.GetGameWorld().GetLineID()
|
| | | return lineID
|
| | |
|
| | | def DeletePlayerHurtList(curNPC):
|
| | | ## 删除伤血列表
|
| | | lineID = GameWorld.GetGameWorld().GetLineID()
|
| | | objID = curNPC.GetID()
|
| | | npcID = curNPC.GetNPCID()
|
| | | lineID = GetBossLineID(npcID)
|
| | | key = (lineID, objID, npcID)
|
| | | if key in PyGameData.g_npcHurtDict:
|
| | | hurtList =PyGameData.g_npcHurtDict.pop(key)
|
| | |
| | |
|
| | | def GetPlayerHurtList(curNPC):
|
| | | ## 获取伤血列表,可能为None
|
| | | lineID = GameWorld.GetGameWorld().GetLineID()
|
| | | objID = curNPC.GetID()
|
| | | npcID = curNPC.GetNPCID()
|
| | | lineID = GetBossLineID(npcID)
|
| | | return GetPlayerHurtListEx(lineID, objID, npcID)
|
| | | def GetPlayerHurtListEx(lineID, objID, npcID):
|
| | | ## 获取伤血列表,可能为None
|