| | |
| | | import DataRecordPack
|
| | | import PlayerSuccess
|
| | | import GameFuncComm
|
| | | import PlayerVip
|
| | | import ItemControler
|
| | | import random
|
| | | import json
|
| | |
| | | awardItemDict = {}
|
| | | eatEquipAwardExDict = IpyGameDataPY.GetFuncEvalCfg("EquipDecomposeAward2", 1, {})
|
| | | eatEquipAwardItemID = IpyGameDataPY.GetFuncCfg("EquipDecomposeAward", 4)
|
| | | petEatItemAddExpPer = PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_EatItem)
|
| | | itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
|
| | | for i, index in enumerate(expIndexList):
|
| | | eatItem = itemPack.GetAt(index)
|
| | |
| | | % (index, baseExp, itemCnt, addExp, totalAddExp))
|
| | | # 先检索可吃列表,防止升级过程中吃掉原来不可吃的[index, 物品实例, 基础经验]
|
| | | eatItemList.append([eatItemID, itemCnt, baseExp, addExp])
|
| | | if petEatItemAddExpPer:
|
| | | totalAddExp += totalAddExp * petEatItemAddExpPer / ChConfig.Def_MaxRateValue
|
| | | |
| | | |
| | | PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_DecomposeEquip, allitemCnt)
|
| | | return eatItemList, totalAddExp, allitemCnt, awardItemDict
|
| | |
|