parent
162085c155
commit
dee35927cb
9 changed files with 24 additions and 23 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,20 @@ |
||||
Scriptname _00E_Func_GetPointsInClass Hidden |
||||
|
||||
int Function Run(Formlist akClassPerkformlist) Global |
||||
|
||||
Actor PlayerREF = Game.GetForm(0x14) as Actor |
||||
Form[] perkForms = akClassPerkformlist.ToArray() |
||||
int PointsSpentInClass |
||||
|
||||
int iClassIndex = 0 |
||||
While iClassIndex < perkForms.Length |
||||
Perk iPerk = perkForms[iClassIndex] as Perk |
||||
If iPerk && PlayerREF.HasPerk(iPerk) |
||||
PointsSpentInClass += 1 |
||||
EndIf |
||||
iClassIndex += 1 |
||||
EndWhile |
||||
|
||||
Return PointsSpentInClass |
||||
|
||||
EndFunction |
Loading…
Reference in new issue