From 46cb09f4e24e4c1019cb7150338c5adce1cc64e7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 18 一月 2025 18:44:34 +0800
Subject: [PATCH] 10263 【越南】【英文】【BT】【砍树】后端支持NPC仿真实玩家战斗和快速战斗(本服竞技场支持掉线重登后结算战斗结果)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerExpandPackCfgMgr.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerExpandPackCfgMgr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerExpandPackCfgMgr.py
index e3f763b..10f63d6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerExpandPackCfgMgr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerExpandPackCfgMgr.py
@@ -25,6 +25,7 @@
 import GameWorld
 import IPY_GameWorld
 import PlayerControl
+import ItemCommon
 import ChConfig
 import copy
 
@@ -185,12 +186,12 @@
     #@remarks 加载物品背包和仓库扩充格子时需要用的配置信息
     def Load(self, curPlayer):
         #默认物品背包格子数
-        defItemPackCount = ChConfig.Def_PlayerFirstLoginOpenBackCnt
+        defItemPackCount = ItemCommon.GetPackInitCount(IPY_GameWorld.rptItem)
         itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
         self.__expandPackCfgDict[IPY_GameWorld.rptItem] = ExpandPackCfg("ExpandItemPack", defItemPackCount, 
                                                                         itemPack.GetMaxCount())
         #默认仓库背包格子数
-        defItemPackCount = ChConfig.Def_FirstLogin_OpenWareHouseCnt
+        defItemPackCount = ItemCommon.GetPackInitCount(IPY_GameWorld.rptWarehouse)
         itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptWarehouse)
         self.__expandPackCfgDict[IPY_GameWorld.rptWarehouse] = ExpandPackCfg("ExpandWareHousePack", defItemPackCount, 
                                                                              itemPack.GetMaxCount())

--
Gitblit v1.8.0