7843 【后端】【主干】掉落、宝箱装备部位集合优化(读配置方式修改)
1个文件已修改
8 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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))