From bd9dce2d66b5086712596b8dac6d9116be65bafd Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 11 十二月 2025 16:53:47 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(去除常规功能封包对象池使用;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py
index da70bce..19ffda5 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py
@@ -26,7 +26,6 @@
 import ItemControler
 import IpyGameDataPY
 import PyGameData
-import ObjPool
 
 #成就奖励是否已领取
 def GetSuccHasGot(curPlayer, succID):
@@ -353,13 +352,12 @@
             syncTypeCondList.append(tcList)
             
     successInfoList = []
-    objPoolMgr = ObjPool.GetPoolMgr()
     for succType, conds in syncTypeCondList:
         curValue = GetSuccValue(curPlayer, succType, conds)
         # 不发送为0的数据
         if not isSendZero and curValue <= 0:
             continue
-        succInfo = objPoolMgr.acquire(ChPyNetSendPack.tagSCSuccessInfo)
+        succInfo = ChPyNetSendPack.tagSCSuccessInfo()
         succInfo.SuccType = succType
         succInfo.Conds = conds
         succInfo.CLen = len(succInfo.Conds)
@@ -369,7 +367,7 @@
     if not successInfoList:
         return
     
-    clientPack = objPoolMgr.acquire(ChPyNetSendPack.tagSCSuccessInfoList)
+    clientPack = ChPyNetSendPack.tagSCSuccessInfoList()
     clientPack.SuccessInfoList = successInfoList
     clientPack.Count = len(clientPack.SuccessInfoList)
     NetPackCommon.SendFakePack(curPlayer, clientPack)
@@ -391,13 +389,12 @@
         maxSuccID = ipyDataMgr.GetSuccessByIndex(succCnt - 1).GetSuccID()
         recordIndexList = xrange(maxSuccID / 31 + 1)
         
-    objPoolMgr = ObjPool.GetPoolMgr()
     recordList = []
     for i in recordIndexList:
         awardRecord = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_SuccessAward % i)
         if not isSyncZero and not awardRecord:
             continue
-        recordInfo = objPoolMgr.acquire(ChPyNetSendPack.tagSCSuccessAwardRecord)
+        recordInfo = ChPyNetSendPack.tagSCSuccessAwardRecord()
         recordInfo.RecordIndex = i
         recordInfo.Record = awardRecord
         recordList.append(recordInfo)
@@ -405,7 +402,7 @@
     if not recordList:
         return
     
-    clientPack = objPoolMgr.acquire(ChPyNetSendPack.tagSCSuccessAwardRecordList)
+    clientPack = ChPyNetSendPack.tagSCSuccessAwardRecordList()
     clientPack.RecordList = recordList
     clientPack.RecordCnt = len(clientPack.RecordList)
     NetPackCommon.SendFakePack(curPlayer, clientPack)

--
Gitblit v1.8.0