From 5d9a338c76eba9fd98f95bdff77b78e4c657382e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 23 五月 2019 21:17:16 +0800
Subject: [PATCH] 6805 【后端】【2.0】副本前端化(增加过滤炼丹等级通用配置)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index a2400c3..1a68119 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -5923,20 +5923,7 @@
         
     if not awardItemList:
         alchemyDiffLV = collectNPCIpyData.GetAlchemyDiffLV()
-        giveItemWeightList = []
-        if alchemyDiffLV:
-            curAlchemyLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyLV)
-            for itemInfo in collectAwardCfg:
-                itemID = itemInfo[1][0]
-                itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
-                if not itemData:
-                    continue
-                if ItemCommon.GetItemClassLV(itemData) > curAlchemyLV + alchemyDiffLV:
-                    continue
-                giveItemWeightList.append(itemInfo)
-        else:
-            giveItemWeightList = collectAwardCfg
-            
+        giveItemWeightList = ItemCommon.GetWeightItemListByAlchemyDiffLV(curPlayer, collectAwardCfg, alchemyDiffLV)
         GameWorld.DebugLog("    常规采集物品权重列表: alchemyDiffLV=%s,collectAwardCfg=%s,giveItemWeightList=%s" % (alchemyDiffLV, collectAwardCfg, giveItemWeightList))
         giveItemInfo = GameWorld.GetResultByWeightList(giveItemWeightList)
         if giveItemInfo:

--
Gitblit v1.8.0