| | |
| | | # @remarks 函数详细说明.
|
| | | def CanPackItemByItemType(srcItemID, srcItemIsBind, destItemID, destItemIsBind):
|
| | | ## 拍品项目,只有非拍品可堆叠,即绑定物品
|
| | | if srcItemID == destItemID and srcItemIsBind == destItemIsBind and not srcItemIsBind:
|
| | | # 20201223 主干取消拍品有效时长设定
|
| | | #if srcItemID == destItemID and srcItemIsBind == destItemIsBind and not srcItemIsBind:
|
| | | if srcItemID == destItemID and srcItemIsBind == destItemIsBind:
|
| | | return True
|
| | | return False
|
| | |
|
| | |
| | | return True
|
| | | defaultPile = True
|
| | | maxPackCount = ChConfig.Def_UpperLimit_DWord # 转化物品叠加上限不取物品表的, 暂定堆叠上限20亿
|
| | | elif isAuctionItem:
|
| | | maxPackCount = tagItemCount
|
| | | defaultPile = False # 新放入的拍品只能放空位置,所以不判断堆叠
|
| | | #isBind = False
|
| | | isNeedRecord = True # 拍品要记录
|
| | | # 20201223 主干取消拍品有效时长设定
|
| | | # elif isAuctionItem:
|
| | | # maxPackCount = tagItemCount
|
| | | # defaultPile = False # 新放入的拍品只能放空位置,所以不判断堆叠
|
| | | # #isBind = False
|
| | | # isNeedRecord = True # 拍品要记录
|
| | | else:
|
| | | maxPackCount = curItemData.GetPackCount()
|
| | |
|
| | |
| | | return item.GetCount()
|
| | |
|
| | | def GetItemNeedPackCount(packType, itemData, itemCount, isAuctionItem=0):
|
| | | if isAuctionItem:
|
| | | if IpyGameDataPY.GetIpyGameDataNotLog("AuctionItem", itemData.GetItemTypeID()):
|
| | | return 1
|
| | | # 20201223 主干取消拍品有效时长设定
|
| | | # if isAuctionItem:
|
| | | # if IpyGameDataPY.GetIpyGameDataNotLog("AuctionItem", itemData.GetItemTypeID()):
|
| | | # return 1
|
| | | if itemData.GetItemTypeID() in ChConfig.Def_TransformItemIDList:
|
| | | # 货币直接转换的物品如果是放入背包的则不需要暂用格子,放入其他的背包的则按物品叠加上限算
|
| | | if packType == IPY_GameWorld.rptItem:
|