From 1abba71c55f7c2613bba39d4ba7008ad6e014493 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 06 十二月 2023 10:05:07 +0800 Subject: [PATCH] 9811 【BT9】【后端】逐鹿万界(优化采集物归属同步) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossFamilyFlagwar.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossFamilyFlagwar.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossFamilyFlagwar.py index c67aae2..c21a153 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossFamilyFlagwar.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossFamilyFlagwar.py @@ -139,7 +139,7 @@ npcID = flagNPC.GetNPCID() batPlayer = self.getBattlePlayer(playerID) flagOwner = self.worldHelpDict.get("flagOwner", {}) - flagOwner[npcID] = [playerID, batPlayer.name] + flagOwner[str(npcID)] = [playerID, batPlayer.name] self.worldHelpDict["flagOwner"] = flagOwner return @@ -147,10 +147,11 @@ self.playerFlagDict.pop(playerID, None) flagOwner = self.worldHelpDict.get("flagOwner", {}) - for npcID, playerInfo in flagOwner.items(): + for npcIDStr, playerInfo in flagOwner.items(): if playerID == playerInfo[0]: - flagOwner.pop(npcID, None) + flagOwner.pop(npcIDStr, None) break + self.worldHelpDict["flagOwner"] = flagOwner return def getWorldHelpInfo(self, isAll, familyID): @@ -162,7 +163,7 @@ for playerID, flagNPC in self.playerFlagDict.items(): npcID = flagNPC.GetNPCID() batPlayer = self.getBattlePlayer(playerID) - flagOwner[npcID] = [playerID, batPlayer.name] + flagOwner[str(npcID)] = [playerID, batPlayer.name] helpInfo = {"flagOwner":flagOwner} # 取自身仙盟及前后名次仙盟信息 -- Gitblit v1.8.0