| | |
| | | curItemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
|
| | |
|
| | | itemIndexList = []
|
| | | costItemIDList = IpyGameDataPY.GetFuncEvalCfg('PetUpItem')
|
| | | costItemIDList = []
|
| | | specCostItemInfo = IpyGameDataPY.GetFuncEvalCfg('PetUpItem', 4)
|
| | | for strItemID, petNPCIDList in specCostItemInfo.items():
|
| | | if petNPCID in petNPCIDList:
|
| | | costItemIDList = [int(strItemID)]
|
| | | break
|
| | | if not costItemIDList:
|
| | | costItemIDList = IpyGameDataPY.GetFuncEvalCfg('PetUpItem')
|
| | | if not costItemIDList:
|
| | | return
|
| | |
|
| | | #扣材料
|
| | | nowCnt = 0
|
| | |
| | | itemCnt = curItem.GetCount()
|
| | | nowCnt += itemCnt
|
| | | if not hasEnough and not isAutoBuy:
|
| | | GameWorld.DebugLog("PetClassUp 升阶道具不足。。。")
|
| | | GameWorld.DebugLog("PetClassUp 升阶道具不足! petNPCID=%s,costItemIDList=%s" % (petNPCID, costItemIDList))
|
| | | return
|
| | |
|
| | | autoBuyItemID = costItemIDList[0]
|