9046 【主干】【BT2】【BT3】【后端】培养功能(不同灵器培养支持配置不同道具)
2个文件已修改
12 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/LingQi.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/LingQi.py
@@ -37,7 +37,7 @@
    
    if msgList[0] == 0:
        for equipPlace in ChConfig.EquipPlace_LingQi:
            for trainType in xrange(1, ChEquip.GetLingQiTrainTypes() + 1):
            for trainType in xrange(1, ChEquip.GetLingQiTrainTypes(equipPlace) + 1):
                PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LingQiTrainLV % (equipPlace, trainType), 1)
                PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_LingQiTrainItemCount % (equipPlace, trainType), 0)
            ChEquip.Sync_LingQiTrainData(curPlayer, equipPlace)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
@@ -633,7 +633,7 @@
    if equipPlace not in ChConfig.EquipPlace_LingQi:
        return
    
    if trainType <= 0 or trainType > GetLingQiTrainTypes():
    if trainType <= 0 or trainType > GetLingQiTrainTypes(equipPlace):
        return
    
    if trainLV <= 0:
@@ -655,7 +655,7 @@
        GameWorld.DebugLog("    该培养已满级!")
        return
    
    costItemIDList = IpyGameDataPY.GetFuncEvalCfg("LingQiTrain", 1)
    costItemIDList = IpyGameDataPY.GetFuncEvalCfg("LingQiTrain", 1, {}).get(str(equipPlace), [])
    costItemID = costItemIDList[trainType - 1]
    if not costItemID or not costItemCount:
        return
@@ -695,15 +695,15 @@
    PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
    return
def GetLingQiTrainTypes():
    return len(IpyGameDataPY.GetFuncEvalCfg("LingQiTrain", 1))
def GetLingQiTrainTypes(equipPlace):
    return len(IpyGameDataPY.GetFuncEvalCfg("LingQiTrain", 1, {}).get(str(equipPlace), []))
def Sync_LingQiTrainData(curPlayer, equipPlace):
    clientPack = ChPyNetSendPack.tagMCLingQiTrainInfo()
    clientPack.EquipPlace = equipPlace
    clientPack.TrainLVList = []
    clientPack.TrainItemCountList = []
    for trainType in xrange(1, GetLingQiTrainTypes() + 1):
    for trainType in xrange(1, GetLingQiTrainTypes(equipPlace) + 1):
        trainLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_LingQiTrainLV % (equipPlace, trainType))
        if trainLV == 0:
            trainLV = 1