From d2ba59346c9eab508bfd3022290fd337bbc69739 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 10 四月 2019 17:17:38 +0800
Subject: [PATCH] 6457 【后端】【2.0】缥缈仙域开发单(宝藏 掉落表现)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FairyTreasure.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FairyTreasure.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FairyTreasure.py
index 4804586..4420541 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FairyTreasure.py
+++ b/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)

--
Gitblit v1.8.0