hxp
2018-09-22 770dde0336b63cb2ab948d03ce3a0e1a4e2d1b82
3724 【开发】掉落归属异常日志优化(仅boss时才输出)
1个文件已修改
5 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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}