| | |
| | | giveItemList = PlayerFairyDomain.GetFairyAppointAward(curPlayer, fdeventID)
|
| | | if not giveItemList:
|
| | | awardCfg = FBCommon.GetFBLineReward(ChConfig.Def_FBMapID_FairyTreasure, lineID)
|
| | | curAlchemyLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyLV)
|
| | | giveItemList = []
|
| | | for awardRateList in awardCfg:
|
| | | newItemInfoList = []
|
| | | for itemInfo in awardRateList:
|
| | | itemID = itemInfo[1][0]
|
| | | itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
|
| | | if not itemData:
|
| | | return
|
| | | if curAlchemyLV < ItemCommon.GetItemClassLV(itemData) - 1:
|
| | | #丹炉等级不足
|
| | | continue
|
| | | |
| | | newItemInfoList.append(itemInfo)
|
| | | if not newItemInfoList:
|
| | | realWeightList = ItemCommon.GetWeightItemListByAlchemyDiffLV(curPlayer, awardRateList, 1)
|
| | | if not realWeightList:
|
| | | continue
|
| | | randomitem = GameWorld.GetResultByWeightList(newItemInfoList)
|
| | | randomitem = GameWorld.GetResultByWeightList(realWeightList)
|
| | | if not randomitem[0]:
|
| | | continue
|
| | | giveItemList.append(randomitem)
|
| | |
|
| | | if giveItemList:
|