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/Event/EventSrc/FunctionNPCCommon.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
index c117e62..80d38e8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
@@ -55,7 +55,6 @@
 import PlayerControl
 import IpyGameDataPY
 import ItemCommon
-import ObjPool
 
 # 重置类型
 ResetType_Day = 1
@@ -407,7 +406,7 @@
             syncIDList.append(shopID)
     if not syncIDList:
         return
-    clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagSCShopRefreshItemInfo)
+    clientPack = ChPyNetSendPack.tagSCShopRefreshItemInfo()
     clientPack.ShopType = shopType
     clientPack.RefreshCnt = min(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ShopRefreshCnt % shopType), 250)
     clientPack.ShopIDList = syncIDList
@@ -418,11 +417,10 @@
 def SyncShopItemBuyCntInfo(curPlayer, syncIDList=[]):
     ##同步商品购买次数
     
-    objPool = ObjPool.GetPoolMgr()
     buyCntList = []
     if syncIDList:
         for shopID in syncIDList:
-            buyInfo = objPool.acquire(ChPyNetSendPack.tagSCShopItemBuyCnt)
+            buyInfo = ChPyNetSendPack.tagSCShopItemBuyCnt()
             buyInfo.ShopID = shopID
             buyInfo.BuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ShopBuyCnt % shopID)
             buyCntList.append(buyInfo)
@@ -436,7 +434,7 @@
             buyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ShopBuyCnt % shopID)
             if buyCnt <= 0:
                 continue
-            buyInfo = objPool.acquire(ChPyNetSendPack.tagSCShopItemBuyCnt)
+            buyInfo = ChPyNetSendPack.tagSCShopItemBuyCnt()
             buyInfo.ShopID = shopID
             buyInfo.BuyCnt = buyCnt
             buyCntList.append(buyInfo)
@@ -444,7 +442,7 @@
     if not buyCntList:
         return
     
-    clientPack = objPool.acquire(ChPyNetSendPack.tagSCShopItemBuyCntInfo)
+    clientPack = ChPyNetSendPack.tagSCShopItemBuyCntInfo()
     clientPack.BuyCntList = buyCntList
     clientPack.Count = len(clientPack.BuyCntList)
     NetPackCommon.SendFakePack(curPlayer, clientPack)

--
Gitblit v1.8.0