From 3bc2e9aae7e595d5be896a9db4c909b76fa6f5be Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 11 七月 2025 14:16:29 +0800
Subject: [PATCH] 0312 物品叠加数量支持配置DWORD
---
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