From ae4ad3c017c9ed69e06186be6694e9a3703ebf42 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 05 七月 2019 15:38:35 +0800
Subject: [PATCH] 7843 【后端】【主干】掉落、宝箱装备部位集合优化(读配置方式修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 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 9117541..4243bf8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -1144,10 +1144,10 @@
     return dropIDList, auctionIDList, dropMoneyCnt, moneyValue
 
 def GetAllEquipPlaceByPlaceKey(placeKey):
-    placeKeyRateListDict = IpyGameDataPY.GetFuncCfg("EquipDropPartSets", 2) # {集合数字key1:[[概率1,部位1],...],...}
+    placeKeyRateListDict = IpyGameDataPY.GetFuncEvalCfg("EquipDropPartSets", 2, {}) # {集合数字key1:[[概率1,部位1],...],...}
     if placeKey in placeKeyRateListDict:
         return [rateInfo[1] for rateInfo in placeKeyRateListDict[placeKey]]
-    placeKeyListDict = IpyGameDataPY.GetFuncCfg("EquipDropPartSets", 1) # {集合数字key1:[部位1,部位2,...],...}
+    placeKeyListDict = IpyGameDataPY.GetFuncEvalCfg("EquipDropPartSets", 1, {}) # {集合数字key1:[部位1,部位2,...],...}
     if placeKey in placeKeyListDict:
         return placeKeyListDict[placeKey]
     return []
@@ -1155,7 +1155,7 @@
 def GetEquipPlaceByPlaceKey(placeKey):
     ## 获取装备位集合对应的部位信息,集合ID重复时,优先饼图
     placeList = []
-    placeKeyRateListDict = IpyGameDataPY.GetFuncCfg("EquipDropPartSets", 2) # {集合数字key1:[[概率1,部位1],...],...}
+    placeKeyRateListDict = IpyGameDataPY.GetFuncEvalCfg("EquipDropPartSets", 2, {}) # {集合数字key1:[[概率1,部位1],...],...}
     if placeKey in placeKeyRateListDict:
         placeRateList = placeKeyRateListDict[placeKey]
         place = GameWorld.GetResultByRandomList(placeRateList)
@@ -1164,7 +1164,7 @@
             #GameWorld.DebugLog("    掉落部位概率集合: placeKey=%s,placeRateList=%s,place=%s,placeList=%s" % (placeKey, placeRateList, place, placeList))
             
     if not placeList:
-        placeKeyListDict = IpyGameDataPY.GetFuncCfg("EquipDropPartSets", 1) # {集合数字key1:[部位1,部位2,...],...}
+        placeKeyListDict = IpyGameDataPY.GetFuncEvalCfg("EquipDropPartSets", 1, {}) # {集合数字key1:[部位1,部位2,...],...}
         if placeKey in placeKeyListDict:
             placeList = placeKeyListDict[placeKey]
             #GameWorld.DebugLog("    掉落部位均衡集合: placeKey=%s,placeList=%s" % (placeKey, placeList))

--
Gitblit v1.8.0