xdh
2019-04-18 d6bf998381c0aed3ed46940493fc6b39c05f5a28
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -1967,7 +1967,7 @@
    classLV = GetItemClassLV(curItem)
    return maxStarDict[str(itemColor)].get(str(classLV), 0)
## 获取物品阶级
## 获取物品阶级或品级
def GetItemClassLV(curItem):
    return curItem.GetLV()
@@ -2074,6 +2074,23 @@
            itemDict["UserData"] = itemInfo.GetUserData()
    return itemDict
def GetWeightItemListByAlchemyDiffLV(curPlayer, weightList, alchemyDiffLV):
    ## 根据炼丹等级差异等级过滤权重列表中不满足的物品,返回新的权重列表
    resultWeightList = []
    if alchemyDiffLV:
        curAlchemyLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AlchemyLV)
        for itemInfo in weightList:
            itemID = itemInfo[1][0]
            itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
            if not itemData:
                continue
            if GetItemClassLV(itemData) > curAlchemyLV + alchemyDiffLV:
                continue
            resultWeightList.append(itemInfo)
    else:
        resultWeightList = weightList
    return resultWeightList
## =======================================================================================
def SyncMakeItemAnswer(curPlayer, makeType, isSuccess, makeItemID):