From 8a0a247299265f7a2ba4ef3af1594ca5bd696d9c Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 14 七月 2025 10:55:50 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(武将升级消耗改为由品质跟武将等级决定;)
---
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