8681 【BT】【主干】【后端】宝箱展示支持多连开
| | |
| | | curItemBind = curItem.GetIsBind()
|
| | |
|
| | | if curItemCnt < delCnt:
|
| | | GameWorld.ErrLog("DelItem, delCnt = %s, itemCnt = %s, itemTypeID = %s" % (delCnt, curItemCnt, curItemTypeID), curPlayer.GetID())
|
| | | GameWorld.ErrLog("DelItem, delCnt = %s < itemCnt = %s, itemTypeID = %s" % (delCnt, curItemCnt, curItemTypeID), curPlayer.GetID())
|
| | | #raise Exception("DelItem, delCnt = %s, itemCnt = %s, itemTypeID = %s" % (delCnt, curItemCnt, curItemTypeID), curPlayer.GetID())
|
| | | return
|
| | | #return
|
| | | delCnt = curItemCnt # 这里强制扣除剩余物品,防止功能逻辑出问题导致无法扣除物品而引起刷bug问题
|
| | |
|
| | | #===========================================================================
|
| | | # if needSysmsg:
|
| | |
| | | return
|
| | |
|
| | | showType = chestsIpyData.GetShowType() # 规定有开箱表现的默认只能开启1个
|
| | | if showType:
|
| | | useCnt = 1
|
| | | #if showType:
|
| | | # useCnt = 1
|
| | | useCnt = min(curRoleItem.GetCount(), useCnt)
|
| | |
|
| | | isBind = int(chestsIpyData.GetIsBind()) # 奖励物品是否绑定
|
| | | costItemID = chestsIpyData.GetCostItemID()
|