hch
2019-08-08 dfa4555080d7fe179aec06e63d045f244e755884
0312 脱机分解蓝白装备不判断评分高低
1个文件已修改
30 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTJG.py 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTJG.py
@@ -526,13 +526,15 @@
    if packSpace >= 5:
        return
    
    equipScores = {}
    equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
    for i in ChConfig.EquipPlace_Base:
        equipItem = equipPack.GetAt(i)
        if not equipItem or equipItem.IsEmpty():
            continue
        equipScores[equipItem.GetType()] = ItemCommon.GetEquipGearScore(equipItem)
    #===========================================================================
    # equipScores = {}
    # equipPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
    # for i in ChConfig.EquipPlace_Base:
    #    equipItem = equipPack.GetAt(ItemCommon.GetEquipPackIndex(i))
    #    if not equipItem or equipItem.IsEmpty():
    #        continue
    #    equipScores[equipItem.GetType()] = ItemCommon.GetEquipGearScore(equipItem)
    #===========================================================================
    
    #GameWorld.DebugLog("equipScores----%s"%equipScores)
    
@@ -552,12 +554,14 @@
            continue
        
        # 本职业需要判断评分高低
        if ItemCommon.CheckJob(curPlayer, curItem):
            if curItem.GetType() not in equipScores:
                # 没有评分说明装备位还是空的 不能吞噬
                continue
            if ItemCommon.GetEquipGearScore(curItem) > equipScores[curItem.GetType()]:
                continue
        #=======================================================================
        # if ItemCommon.CheckJob(curPlayer, curItem):
        #    if curItem.GetType() not in equipScores:
        #        # 没有评分说明装备位还是空的 不能吞噬
        #        continue
        #    if ItemCommon.GetEquipGearScore(curItem) > equipScores[curItem.GetType()]:
        #        continue
        #=======================================================================
        
        eatIndexList.append(i)
        eatItemIDList.append(curItem.GetItemTypeID())