| | |
| | | return consumeItemIndexList, bindCnt, unBindCnt
|
| | |
|
| | | ## 扣除消耗材料, 优先扣除绑定的物品, 配置函数使用 GetPackItemBindStateIndexInfo, DelCostItemByBind
|
| | | def DelCostItemByBind(curPlayer, costItemIndexList, bindCnt, unBindCnt, delCnt, delEvent, saveDataDict={}):
|
| | | curPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
|
| | | def DelCostItemByBind(curPlayer, costItemIndexList, bindCnt, unBindCnt, delCnt, delEvent, saveDataDict={}, packType=IPY_GameWorld.rptItem):
|
| | | curPack = curPlayer.GetItemManager().GetPack(packType)
|
| | | bindIndexList, unBindIndexList = costItemIndexList
|
| | | if bindCnt >= delCnt:
|
| | | ReduceItem(curPlayer, curPack, bindIndexList, delCnt, True, delEvent, saveDataDict)
|