| | |
| | | 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)
|
| | |
|
| | |
| | | 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())
|