From 770dde0336b63cb2ab948d03ce3a0e1a4e2d1b82 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 22 九月 2018 02:56:52 +0800
Subject: [PATCH] 3724 【开发】掉落归属异常日志优化(仅boss时才输出)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 5a574e2..ab5e9a7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -4265,6 +4265,7 @@
self.__AllKillerDict, curTeam, hurtType, hurtID = self.__FindNPCKillerInfo()
self.__OwnerHurtType, self.__OwnerHurtID = hurtType, hurtID
+ isGameBoss = ChConfig.IsGameBoss(curNPC)
#最后一击处理
self.__DoLastTimeHurtLogic()
@@ -4299,10 +4300,10 @@
elif hurtType == ChConfig.Def_NPCHurtTypeFamily:
self.__KilledByFamilySetPrize(hurtType, hurtID)
- else:
+ elif isGameBoss:
GameWorld.ErrLog("NPC归属异常:npcID=%s,hurtType=%s,hurtID=%s" % (npcID, hurtType, hurtID))
- if ChConfig.IsGameBoss(curNPC):
+ if isGameBoss:
dataDict = {"objID":curNPC.GetID(), "bossID":npcID, "mapID":GameWorld.GetMap().GetMapID(),
"lineID":GameWorld.GetGameWorld().GetLineID(), "teamID":curTeam.GetTeamID() if curTeam else 0,
"killerID":self.__AllKillerDict.keys(), "hurtType":hurtType,"hurtID":hurtID}
--
Gitblit v1.8.0