hxp
2018-11-23 8f53294dcc665b7c88835c9ead997574fdd781ed
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerMagicWeapon.py
@@ -538,8 +538,11 @@
        if fbpasslv: #副本关卡属性
            fbipyData = IpyGameDataPY.GetIpyGameData('MagicWeaponFB', magicWeaponID, fbpasslv)
            if fbipyData:
                attrDict = fbipyData.AttrDict()
                GameWorld.AddDictValue(allAttrDict, attrDict)
                attrDict = fbipyData.GetAttrDict()
                for effID, value in attrDict.items():
                    effID = int(effID)
                    allAttrDict[effID] = allAttrDict.get(effID, 0) + value
                
        for effID, value in allAttrDict.items():
            if treasureType == 1:
@@ -961,6 +964,13 @@
    privilegeIpyData = IpyGameDataPY.GetIpyGameDataNotLog('TreasurePrivilege', privilege)
    if not privilegeIpyData:
        return
    curGotValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWSoulGotValue % privilege)
    singleValue = privilegeIpyData.GetSingleValue()
    if singleValue and curGotValue % singleValue:
        fixGotValue = curGotValue/singleValue*singleValue
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MWSoulGotValue % privilege, fixGotValue)
        GameWorld.Log('玩家法宝之魂已领的数据不是单次进度的倍数,修复! privilege=%s,curGotValue=%s, fixGotValue=%s'%(privilege, curGotValue, fixGotValue))
    curValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_MWSoulCurValue % privilege)
    newData = curValue + data if isAdd else data
    maxValue = privilegeIpyData.GetMaxValue()