diff --git a/scripts/_00E_Func_ComputeNeededExp.pex b/scripts/_00E_Func_ComputeNeededExp.pex index 5cc1c366..32aa7658 100644 Binary files a/scripts/_00E_Func_ComputeNeededExp.pex and b/scripts/_00E_Func_ComputeNeededExp.pex differ diff --git a/source/scripts/_00E_Func_ComputeNeededExp.psc b/source/scripts/_00E_Func_ComputeNeededExp.psc index 21e4bcf6..279424b9 100644 --- a/source/scripts/_00E_Func_ComputeNeededExp.psc +++ b/source/scripts/_00E_Func_ComputeNeededExp.psc @@ -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.} - return EnderalFunctions.ComputeNeededExp(CurrentLevel, Slope, Mult, fExpAcc, fExpAcc_Level20, fExpAcc_Level30, fExpAcc_Level40); - + 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: