From 0b52fea0c2dec053c44678d94bd66c10db1b0b91 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 06 四月 2021 17:27:57 +0800 Subject: [PATCH] 8870 【BT2】【后端】战力、伤害、玩家生命的数值调整为大数值(超21亿) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCHurt.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCHurt.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCHurt.py index 9d8bb48..4ee4e9e 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCHurt.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/PrintNPCHurt.py @@ -22,6 +22,7 @@ import NPCHurtManager import NPCHurtMgr import PlayerTeam +import ShareDefine import GameObj ##查看点选的NPC仇恨列表 @@ -76,6 +77,8 @@ 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 @@ -84,7 +87,7 @@ 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()) -- Gitblit v1.8.0