6385 【后端】【2.0】五行灵根开发(优化洗点)
| | |
| | | if not resetID and exData:
|
| | | resetID = exData
|
| | | resetPoint = curEff.GetEffectValue(1) * useCnt
|
| | | if not DoResetAttrPoint(curPlayer, resetID, resetPoint):
|
| | | if not DoResetAttrPoint(curPlayer, resetID, resetPoint, curRoleItem.GetItemTypeID()):
|
| | | return
|
| | |
|
| | | #扣除物品
|
| | |
| | | realResetPoint = curPoint
|
| | | else:
|
| | | realResetPoint = min(resetPoint, curPoint)
|
| | | if not realResetPoint:
|
| | | continue
|
| | | resetPointTotal += realResetPoint
|
| | | updPoint = max(curPoint - realResetPoint, 0)
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AddPointValue % resetID, updPoint)
|