hxp
2020-12-28 a6fb3fc9fdf49158dc86870d99f113460d66b9b6
8681 【BT】【主干】【后端】宝箱展示支持多连开
2个文件已修改
10 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_Chests.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -1840,9 +1840,10 @@
    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:
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_Chests.py
@@ -41,8 +41,9 @@
        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()