Added an SKSE switch to _00E_Func_ComputeNeededExp

This commit is contained in:
Eddoursul 2024-02-09 19:12:21 +01:00
parent 8f713030c6
commit 0d28276096
2 changed files with 10 additions and 9 deletions

View File

@ -1,19 +1,20 @@
Scriptname _00E_Func_ComputeNeededExp Hidden
;import Math
import Math
float Function Run(int CurrentLevel, float Slope, float Mult, float fExpAcc = 1.0, float fExpAcc_Level20 = 1.2, float fExpAcc_Level30 = 1.5, float fExpAcc_Level40 = 2.0) Global
{Computes the total Experience (EP) needed by the player to reach the level CurrentLevel + 1. This includes the experience needed for the previous level.}
if SKSE.GetVersion()
return EnderalFunctions.ComputeNeededExp(CurrentLevel, Slope, Mult, fExpAcc, fExpAcc_Level20, fExpAcc_Level30, fExpAcc_Level40);
endif
; This can be used as a quick way to scale the leveling process
; for all levels:
;/
float fExpAcc = 1.0
float fExpAcc_Level20 = 1.2
float fExpAcc_Level30 = 1.5
float fExpAcc_Level40 = 2.0
;float fExpAcc = 1.0
;float fExpAcc_Level20 = 1.2
;float fExpAcc_Level30 = 1.5
;float fExpAcc_Level40 = 2.0
Mult *= fExpAcc
@ -38,7 +39,7 @@ float Function Run(int CurrentLevel, float Slope, float Mult, float fExpAcc = 1.
return result
endif
EndIf
/;
EndFunction
; A debugging function: