| | |
| | | import NPCHurtManager
|
| | | import NPCHurtMgr
|
| | | import PlayerTeam
|
| | | import ShareDefine
|
| | | import GameObj
|
| | |
|
| | | ##查看点选的NPC仇恨列表
|
| | |
| | | hurtType = hurtObj.GetValueType()
|
| | | hurtID = hurtObj.GetValueID()
|
| | | hurtValue = hurtObj.GetHurtValue()
|
| | | if hasattr(hurtObj, "GetHurtValueEx"):
|
| | | hurtValue += hurtObj.GetHurtValueEx() * ShareDefine.Def_PerPointValue
|
| | | if not hurtID:
|
| | | GameWorld.DebugAnswer(curPlayer, "%s 不存在!HurtType=%s,ID=%s, V=%s" % (index, hurtType, hurtID, hurtValue))
|
| | | continue
|
| | |
| | | hurtPlayer = GameWorld.GetObj(hurtID, IPY_GameWorld.gotPlayer)
|
| | | if hurtPlayer == None:
|
| | | GameWorld.DebugAnswer(curPlayer, "%s 玩家ID=%s,不存在, V=%s" % (index, hurtID, hurtValue))
|
| | | elif hurtPlayer.GetHP() <= 0 :
|
| | | elif GameObj.GetHP(hurtPlayer) <= 0 :
|
| | | GameWorld.DebugAnswer(curPlayer, "%s 玩家ID=%s,血量为0, V=%s" % (index, hurtID, hurtValue))
|
| | | else:
|
| | | d = GameWorld.GetDist(curNPC.GetPosX(), curNPC.GetPosY(), hurtPlayer.GetPosX(), hurtPlayer.GetPosY())
|