From 4087d18ce7cbd1578a6e287962bd902386984048 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 14 七月 2025 10:55:57 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_ServerCode

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
index a9f3756..850d19e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -950,6 +950,7 @@
 
 def GetPackInitCount(packType):
     ## 获取背包类型对应初始格子数
+    initCount = 0
     if packType == IPY_GameWorld.rptItem:
         initCount = IpyGameDataPY.GetFuncCfg("InitBagCellCount", 1)
     elif packType == IPY_GameWorld.rptWarehouse:
@@ -960,7 +961,8 @@
         initCount = IpyGameDataPY.GetFuncCfg("DogzPack", 1)
     elif packType == ShareDefine.rptDogzEquip:
         initCount = IpyGameDataPY.GetFuncCfg("DogzPack", 2)
-    else:
+        
+    if not initCount:
         bagInitCntDict = IpyGameDataPY.GetFuncEvalCfg("InitBagCellCount", 2, {})
         initCount = bagInitCntDict.get(str(packType), 0)
     GameWorld.DebugLog("背包类型初始格子数: packType=%s,initCount=%s" % (packType, initCount))

--
Gitblit v1.8.0