| | |
| | | import GameWorld
|
| | | import IPY_GameWorld
|
| | | import PlayerControl
|
| | | import ItemCommon
|
| | | import ChConfig
|
| | | import copy
|
| | |
|
| | |
| | | #@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())
|