xdh
2019-01-31 747c36dbcff579884277e7c3be1ac5c8b3ac93a0
6105 【后端】【1.5.200】诛仙宝石开发(属性刷新修改)
1个文件已修改
9 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py
@@ -244,8 +244,8 @@
                else:
                    PlayerControl.CalcAttrDict_Type(legendAttrID, legendAttrValue, allAttrList)
        #宝石属性
        gemlvList = ChEquip.CalcEquipStone_Effect(curPlayer, equipIndex, allAttrListZXStone)
        equipPlaceStoneLVDict[equipIndex] = gemlvList
        gemlvList = ChEquip.CalcEquipStone_Effect(curPlayer, equipPlace, allAttrListZXStone)
        equipPlaceStoneLVDict[equipPlace] = gemlvList
            
        
#    GameWorld.DebugLog("诛仙装备属性: allAttrList=%s" % (allAttrList))
@@ -325,6 +325,7 @@
            else:
                PlayerControl.CalcAttrDict_Type(suitEffID, suitEffValue, allAttrListZXSuit)
    #宝石共鸣属性
    #GameWorld.DebugLog('equipPlaceStoneLVDict=%s'%equipPlaceStoneLVDict)
    needStoneCnt = IpyGameDataPY.GetFuncCfg('GemResonance')
    for suitType, placeGroupList in suitPlaceGroupDict.items():
        suitType = int(suitType)
@@ -335,7 +336,7 @@
        if len(groupStoneLVList) < needStoneCnt:
            continue
        groupStoneLVList.sort(reverse=True)
        shareStoneLV = min(groupStoneLVList[needStoneCnt:])
        shareStoneLV = min(groupStoneLVList[:needStoneCnt])
        GameWorld.DebugLog("    激活诛仙宝石共鸣: suitType=%s, shareStoneLV=%s" % (suitType, shareStoneLV))
        stoneAttrIpyData = IpyGameDataPY.GetIpyGameData("ZhuXianStoneAttr", suitType, shareStoneLV)
        if not stoneAttrIpyData:
@@ -353,7 +354,7 @@
                plusEffDict = equipPlaceBaseAttrDict[plusPlace]
                #GameWorld.DebugLog("            plusPlace=%s,plusEffDict=%s" % (plusPlace, plusEffDict))
                for plusEffID, plusEffValue in plusEffDict.items():
                    addValue = int(plusEffValue * (10000 + suitEffValue) / 10000.0)
                    addValue = int(plusEffValue * (10000 + effValue) / 10000.0)
                    #GameWorld.DebugLog("                plusEffID=%s,plusEffValue=%s,addValue=%s" % (plusEffID, plusEffValue, addValue))
                    PlayerControl.CalcAttrDict_Type(plusEffID, addValue, allAttrListZXStone)
            else: