5183 【1.3】增加属性和天赋洗点,神兽召回,神兽装备替换导致战力下降流向记录
4个文件已修改
16 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -5173,7 +5173,9 @@
PowerDownType_EquipWash, #洗练
PowerDownType_Title, #称号过期
PowerDownType_Dogz, #神兽召回
) = range(8)
PowerDownType_ResetPoint, #洗点
PowerDownType_ResetTalent, #大师天赋重置
) = range(10)
FightPowerDownRecordDict = {
    PowerDownType_Rune:'Rune',
    PowerDownType_LVUP:'LVUP',
@@ -5183,4 +5185,6 @@
    PowerDownType_EquipWash:'EquipWash',
    PowerDownType_Title:'DelTitle',
    PowerDownType_Dogz:'DogzState',
    PowerDownType_ResetPoint:'ResetPoint',
    PowerDownType_ResetTalent:'ResetTalent',
    } 
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py
@@ -18,7 +18,7 @@
import GameWorld
import ItemCommon
import ShareDefine
import PlayerSuccess
import DataRecordPack
import ChConfig
import math
#---------------------------------------------------------------------
@@ -77,13 +77,13 @@
    resetPoint = min(curValue-baseValue, realUseCnt * resetCnt)
    curPlayer.SetFreePoint(freePoint+resetPoint)
    getattr(curPlayer, 'Set%s'%keyStr)(curValue-resetPoint)
    DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_ResetPoint, {'resetAttrID':resetAttrID,'resetPoint':resetPoint})
    #刷新人物所有状态
    playerControl = PlayerControl.PlayerControl(curPlayer)
    playerControl.RefreshPlayerAttrState()
    
    #扣除物品
    ItemCommon.DelItem(curPlayer, curRoleItem, realUseCnt, True, ChConfig.ItemDel_ResetAttrPoint)
    PlayerControl.NotifyCode(curPlayer, 'WashPoint2', [curRoleItem.GetItemTypeID(), resetAttrID, resetPoint, curValue-resetPoint-baseValue])
    return True, realUseCnt
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
@@ -141,8 +141,12 @@
            continue
        
        destEquip = dogzEquipPack.GetAt(equipPackIndex)
        desItemID, desUserData = [0, ''] if destEquip.IsEmpty() else [destEquip.GetItemTypeID(), destEquip.GetUserData()]
        srcItemID, srcUserData = curEquip.GetItemTypeID(), curEquip.GetUserData()
        if ItemCommon.DoLogicSwitchItem(curPlayer, curEquip, destEquip, ShareDefine.rptDogzEquip):
            succIndexList.append(equipIndex)
            dataDict = {'dotype':'EquipDogzItem', 'desItemID':desItemID, 'desUserData':desUserData,'srcItemID':srcItemID,'srcUserData':srcUserData}
            DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_EquipChange, dataDict)
    
    GameWorld.DebugLog("    穿戴成功索引列表: %s" % succIndexList, playerID)
    if not succIndexList:
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerGreatMaster.py
@@ -354,7 +354,7 @@
    # 重新刷新被动技能
    passiveEff = PassiveBuffEffMng.GetPassiveEffManager().InitObjPassiveEff(curPlayer)
    passiveEff.RefreshPassiveSkill()
    DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_ResetTalent, {'resetPoint':resetPoint})
    if isRefreshAttr:
        curControl = PlayerControl.PlayerControl(curPlayer)
        curControl.RefreshPlayerAttrState()