2023-12-19 04:47:41 +00:00
|
|
|
Scriptname _00E_Func_GetPointsInClass Hidden
|
|
|
|
|
|
|
|
int Function Run(Formlist akClassPerkformlist) Global
|
|
|
|
|
|
|
|
Actor PlayerREF = Game.GetForm(0x14) as Actor
|
|
|
|
int PointsSpentInClass
|
|
|
|
|
|
|
|
int iClassIndex = 0
|
2024-02-08 03:01:22 +00:00
|
|
|
int nItems = akClassPerkformlist.GetSize()
|
|
|
|
While iClassIndex < nItems
|
|
|
|
Perk iPerk = akClassPerkformlist.GetAt(iClassIndex) as Perk
|
2023-12-19 04:47:41 +00:00
|
|
|
If iPerk && PlayerREF.HasPerk(iPerk)
|
|
|
|
PointsSpentInClass += 1
|
|
|
|
EndIf
|
|
|
|
iClassIndex += 1
|
|
|
|
EndWhile
|
|
|
|
|
|
|
|
Return PointsSpentInClass
|
|
|
|
|
|
|
|
EndFunction
|