|
|
|
@ -132,8 +132,14 @@ Function UpdateMajorSchool() |
|
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
Int[] Function GetPerkDistribution() |
|
|
|
|
Int[] PerkDistribution = Utility.CreateIntArray(PerkTree_Trees.Length, 0) |
|
|
|
|
|
|
|
|
|
Int[] PerkDistribution |
|
|
|
|
|
|
|
|
|
if SKSE.GetVersion() > 0 |
|
|
|
|
PerkDistribution = Utility.CreateIntArray(PerkTree_Trees.Length, 0) |
|
|
|
|
else |
|
|
|
|
PerkDistribution = new int[12] |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
Int Index = 0 |
|
|
|
|
While Index < PerkTree_Trees.Length |
|
|
|
|
If PerkTree_Trees[Index] |
|
|
|
@ -146,8 +152,14 @@ Int[] Function GetPerkDistribution() |
|
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
Int[] Function GetMaxPerkDistribution() |
|
|
|
|
Int[] MaxPerkDistribution = Utility.CreateIntArray(PerkTree_Trees.Length, 0) |
|
|
|
|
|
|
|
|
|
Int[] MaxPerkDistribution |
|
|
|
|
|
|
|
|
|
if SKSE.GetVersion() > 0 |
|
|
|
|
MaxPerkDistribution = Utility.CreateIntArray(PerkTree_Trees.Length, 0) |
|
|
|
|
else |
|
|
|
|
MaxPerkDistribution = new int[12] |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
Int Index = 0 |
|
|
|
|
While Index < PerkTree_Trees.Length |
|
|
|
|
If PerkTree_Trees[Index] |
|
|
|
@ -196,6 +208,11 @@ Function UpdateClassIndices(Int[] PerkDistribution) |
|
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
Function ResetUnlockedAffinities() |
|
|
|
|
if SKSE.GetVersion() == 0 |
|
|
|
|
affinitiesUnlocked = new bool[21] |
|
|
|
|
return |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
affinitiesUnlocked = Utility.CreateBoolArray(Affinity_Spells.Length, False) |
|
|
|
|
|
|
|
|
|
; For whatever reason, the second "filler" arg in CreateBoolArray does not work, the array is filled with True |
|
|
|
@ -331,7 +348,14 @@ Function GetPlayerClass() |
|
|
|
|
|
|
|
|
|
Int nTotalUnlockedAffinityCount = 0 |
|
|
|
|
Int nSinceLastTimeUnlockedAffinityCount = 0 |
|
|
|
|
Int[] unlockedAffinityIndices = Utility.CreateIntArray(affinitiesUnlocked.Length, 0) |
|
|
|
|
|
|
|
|
|
Int[] unlockedAffinityIndices |
|
|
|
|
|
|
|
|
|
if SKSE.GetVersion() > 0 |
|
|
|
|
unlockedAffinityIndices = Utility.CreateIntArray(affinitiesUnlocked.Length, 0) |
|
|
|
|
else |
|
|
|
|
unlockedAffinityIndices = new int[21] |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
Int Index = 0 |
|
|
|
|
While Index < affinitiesUnlocked.Length |
|
|
|
|