5183 【1.3】增加属性和天赋洗点,神兽召回,神兽装备替换导致战力下降流向记录
| | |
| | | PowerDownType_EquipWash, #洗练
|
| | | PowerDownType_Title, #称号过期
|
| | | PowerDownType_Dogz, #神兽召回
|
| | | ) = range(8)
|
| | | PowerDownType_ResetPoint, #洗点
|
| | | PowerDownType_ResetTalent, #大师天赋重置
|
| | | ) = range(10)
|
| | | FightPowerDownRecordDict = {
|
| | | PowerDownType_Rune:'Rune',
|
| | | PowerDownType_LVUP:'LVUP',
|
| | |
| | | PowerDownType_EquipWash:'EquipWash',
|
| | | PowerDownType_Title:'DelTitle',
|
| | | PowerDownType_Dogz:'DogzState',
|
| | | PowerDownType_ResetPoint:'ResetPoint',
|
| | | PowerDownType_ResetTalent:'ResetTalent',
|
| | | } |
| | |
| | | import GameWorld
|
| | | import ItemCommon
|
| | | import ShareDefine
|
| | | import PlayerSuccess
|
| | | import DataRecordPack
|
| | | import ChConfig
|
| | | import math
|
| | | #---------------------------------------------------------------------
|
| | |
| | | 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
|
| | |
|
| | |
| | | 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:
|
| | |
| | | # 重新刷新被动技能
|
| | | passiveEff = PassiveBuffEffMng.GetPassiveEffManager().InitObjPassiveEff(curPlayer)
|
| | | passiveEff.RefreshPassiveSkill()
|
| | | |
| | | DataRecordPack.Cache_FightPowerChangeInfo(curPlayer, ChConfig.PowerDownType_ResetTalent, {'resetPoint':resetPoint})
|
| | | if isRefreshAttr:
|
| | | curControl = PlayerControl.PlayerControl(curPlayer)
|
| | | curControl.RefreshPlayerAttrState()
|