xdh
2019-04-10 d2ba59346c9eab508bfd3022290fd337bbc69739
6457 【后端】【2.0】缥缈仙域开发单(宝藏 掉落表现)
1个文件已修改
9 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FairyTreasure.py 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FairyTreasure.py
@@ -338,6 +338,7 @@
    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:
@@ -352,9 +353,13 @@
            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)