| | |
| | | awardCfg = FBCommon.GetFBLineReward(ChConfig.Def_FBMapID_FairyTreasure, lineID)
|
| | | curAlchemyLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyLV)
|
| | | giveItemList = []
|
| | | dropItemList = []
|
| | | for awardRateList in awardCfg:
|
| | | newItemInfoList = []
|
| | | for itemInfo in awardRateList:
|
| | |
| | | newItemInfoList.append(itemInfo)
|
| | | if not newItemInfoList:
|
| | | continue
|
| | | giveItemList.append(GameWorld.GetResultByWeightList(newItemInfoList))
|
| | | randomitem = GameWorld.GetResultByWeightList(newItemInfoList)
|
| | | giveItemList.append(randomitem)
|
| | | for _ in randomitem[1]:
|
| | | dropItemList.append([randomitem[0],1,randomitem[2]])
|
| | | |
| | | if giveItemList:
|
| | | NPCCommon.DoVirtualItemDrop(curPlayer, giveItemList, dropPosX, dropPosY)
|
| | | NPCCommon.DoVirtualItemDrop(curPlayer, dropItemList, dropPosX, dropPosY)
|
| | | ItemControler.GivePlayerItemOrMail(curPlayer, giveItemList)
|
| | | leaveTick = __GetFBTimeCfg(lineID)[Def_LeaveTime] * 1000
|
| | | curPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True)
|