From 98f3638b6a91fdbf2eef613e1f711fdec952ea5d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 09 六月 2021 11:59:52 +0800
Subject: [PATCH] 5071 【BT2】【主干】【gt_1.100.7】外网出现boss无法死亡。(优化死亡检查日志明细)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
index 916e36e..39b1ea1 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -484,6 +484,8 @@
elif hurtType == ChConfig.Def_NPCHurtTypeTeam:
teamID = hurtID
mapTeamPlayerIDList = PlayerTeam.GetMapTeamPlayerIDList(teamID)
+ if self.logDetail:
+ GameWorld.Log(" teamID=%s, mapTeamPlayerIDList=%s" % (teamID, mapTeamPlayerIDList))
for teamPlayerID in mapTeamPlayerIDList:
if self.__UnAssistPlayerHurtValidLogic(teamPlayerID, refreshPoint, tick):
hurtPlayerDict[teamPlayerID] = teamID
@@ -558,7 +560,7 @@
if not self.__GetIsInRefreshPoint(player.GetPosX(), player.GetPosY(), refreshPoint):
GameWorld.DebugLog("伤血玩家不在boss范围内,不计!playerID=%s" % playerID, self.npcID, self.lineID)
if self.logDetail:
- GameWorld.DebugLog(" 伤血玩家不在boss范围内,不计!playerID=%s" % playerID, self.npcID, self.lineID)
+ GameWorld.Log(" 伤血玩家不在boss范围内,不计!playerID=%s" % playerID, self.npcID, self.lineID)
return False
return True
@@ -723,6 +725,8 @@
def __GetIsInRefreshPoint(self, curPosX, curPosY, refreshPoint):
if not refreshPoint:
+ if self.logDetail:
+ GameWorld.Log(" not refreshPoint=%s" % refreshPoint, self.npcID, self.lineID)
return False
if (curPosX >= refreshPoint.GetPosX() - refreshPoint.GetMoveDist() and
@@ -731,6 +735,9 @@
curPosY <= refreshPoint.GetPosY() + refreshPoint.GetMoveDist()):
return True
+ if self.logDetail:
+ GameWorld.Log(" not in refreshPoint curPosX=%s,curPosY=%s,rPosX=%s,rPosY=%s,rDict=%s"
+ % (curPosX, curPosY, refreshPoint.GetPosX(), refreshPoint.GetPosY(), refreshPoint.GetMoveDist()), self.npcID, self.lineID)
return False
def __UpdBossShuntInfo(self, mapID, hurtPlayerDict, tick):
--
Gitblit v1.8.0