| | |
| | | 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
|
| | |
|