From 6b3b8976f49b47754a57cc710bf20a0682a80f78 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 30 十月 2025 17:09:48 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(修复主线拾取掉落战利品为绑定的bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
index 4033b07..4584fca 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerArena.py
@@ -27,6 +27,7 @@
import PyGameData
import GameWorld
import ChConfig
+import ObjPool
import random
# 记录攻击类型
@@ -323,19 +324,22 @@
def __SyncMatchList(curPlayer, matchIDList):
## 同步匹配列表
- clientPack = ChPyNetSendPack.tagSCArenaMatchList()
+ objPool = ObjPool.GetPoolMgr()
+ clientPack = objPool.acquire(ChPyNetSendPack.tagSCArenaMatchList)
clientPack.MatchList = []
for matchID in matchIDList:
viewCache = PlayerViewCache.FindViewCache(matchID)
- matchInfo = ChPyNetSendPack.tagSCArenaMatchInfo()
+ matchInfo = objPool.acquire(ChPyNetSendPack.tagSCArenaMatchInfo)
matchInfo.PlayerID = matchID
if viewCache:
matchInfo.PlayerName = viewCache.GetPlayerName()
matchInfo.RealmLV = viewCache.GetRealmLV()
+ matchInfo.LV = viewCache.GetLV()
matchInfo.Face = viewCache.GetFace()
matchInfo.FacePic = viewCache.GetFacePic()
matchInfo.FightPower = viewCache.GetFightPower()
matchInfo.FightPowerEx = viewCache.GetFightPowerEx()
+ matchInfo.TitleID = viewCache.GetTitleID()
else:
matchInfo.PlayerName = "p%s" % matchID
clientPack.MatchList.append(matchInfo)
@@ -344,7 +348,7 @@
return
def Sync_ArenaInfo(curPlayer):
- clientPack = ChPyNetSendPack.tagSCArenaPlayerInfo()
+ clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCArenaPlayerInfo)
clientPack.Score = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ArenaScore)
NetPackCommon.SendFakePack(curPlayer, clientPack)
return
--
Gitblit v1.8.0