| | |
| | |
|
| | | return -1
|
| | |
|
| | | def GetPackInitCount(packType):
|
| | | ## 获取背包类型对应初始格子数
|
| | | if packType == IPY_GameWorld.rptItem:
|
| | | initCount = IpyGameDataPY.GetFuncCfg("InitBagCellCount", 1)
|
| | | elif packType == IPY_GameWorld.rptWarehouse:
|
| | | initCount = IpyGameDataPY.GetFuncCfg("InitDepotCellCount", 1)
|
| | | elif packType == ShareDefine.rptTreasure:
|
| | | initCount = IpyGameDataPY.GetFuncCfg("TreasureSet", 3)
|
| | | elif packType == ShareDefine.rptDogzItem:
|
| | | initCount = IpyGameDataPY.GetFuncCfg("DogzPack", 1)
|
| | | elif packType == ShareDefine.rptDogzEquip:
|
| | | initCount = IpyGameDataPY.GetFuncCfg("DogzPack", 2)
|
| | | else:
|
| | | bagInitCntDict = IpyGameDataPY.GetFuncEvalCfg("InitBagCellCount", 2, {})
|
| | | initCount = bagInitCntDict.get(str(packType), 0)
|
| | | GameWorld.DebugLog("背包类型初始格子数: packType=%s,initCount=%s" % (packType, initCount))
|
| | | return initCount
|
| | |
|
| | | ## 获得虚拟背包格子数
|
| | | # @param packindex 背包索引
|
| | | # @return 背包格子数
|