| | |
| | | if eatItem.GetType() == ChConfig.Def_ItemType_EquipDecomposeExp:
|
| | | curEff = eatItem.GetEffectByIndex(0)
|
| | | baseExp = curEff.GetEffectValue(0)
|
| | | else:
|
| | | elif ItemCommon.CheckItemIsEquip(eatItem):
|
| | | itemColor = eatItem.GetItemColor()
|
| | | itemClass = eatItem.GetLV()
|
| | | ipyData = IpyGameDataPY.GetIpyGameData("PetEatEquip", itemColor, itemClass)
|
| | |
| | | GameWorld.DebugLog(" tagPetEatEquip.txt,未配置该物品! eatItemID=%s, EquipColor=%s,EquipClass=%s" % (eatItemID, itemColor, itemClass))
|
| | | continue
|
| | | baseExp = ipyData.GetExp()
|
| | | |
| | | else:
|
| | | GameWorld.ErrLog(' 不可分解的道具index=%s eatItemID=%s'%(index, eatItemID))
|
| | | continue
|
| | | itemCnt = eatItem.GetCount() # 装备一般默认1,如是经验道具则一般可叠加
|
| | | addExp = baseExp * itemCnt
|
| | |
|