| | |
| | |
|
| | | def GetPackInitCount(packType):
|
| | | ## 获取背包类型对应初始格子数
|
| | | initCount = 0
|
| | | if packType == IPY_GameWorld.rptItem:
|
| | | initCount = IpyGameDataPY.GetFuncCfg("InitBagCellCount", 1)
|
| | | elif packType == IPY_GameWorld.rptWarehouse:
|
| | |
| | | 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))
|