Added an SKSE switch to _00E_Func_ComputeNeededExp
This commit is contained in:
parent
8f713030c6
commit
0d28276096
Binary file not shown.
@ -1,19 +1,20 @@
|
|||||||
Scriptname _00E_Func_ComputeNeededExp Hidden
|
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
|
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.}
|
{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
|
; This can be used as a quick way to scale the leveling process
|
||||||
; for all levels:
|
; for all levels:
|
||||||
;/
|
;float fExpAcc = 1.0
|
||||||
float fExpAcc = 1.0
|
;float fExpAcc_Level20 = 1.2
|
||||||
float fExpAcc_Level20 = 1.2
|
;float fExpAcc_Level30 = 1.5
|
||||||
float fExpAcc_Level30 = 1.5
|
;float fExpAcc_Level40 = 2.0
|
||||||
float fExpAcc_Level40 = 2.0
|
|
||||||
|
|
||||||
Mult *= fExpAcc
|
Mult *= fExpAcc
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ float Function Run(int CurrentLevel, float Slope, float Mult, float fExpAcc = 1.
|
|||||||
return result
|
return result
|
||||||
endif
|
endif
|
||||||
EndIf
|
EndIf
|
||||||
/;
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
; A debugging function:
|
; A debugging function:
|
||||||
|
Loading…
Reference in New Issue
Block a user