From 0d2827609635601a3fca2f2eabae239080b94517 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Fri, 9 Feb 2024 19:12:21 +0100 Subject: [PATCH] Added an SKSE switch to _00E_Func_ComputeNeededExp --- scripts/_00E_Func_ComputeNeededExp.pex | Bin 1032 -> 2193 bytes source/scripts/_00E_Func_ComputeNeededExp.psc | 19 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/scripts/_00E_Func_ComputeNeededExp.pex b/scripts/_00E_Func_ComputeNeededExp.pex index 5cc1c366607f62f22849b0d30dfb787aa6bb3201..32aa7658802305da7a67858123653e7faf7fd0f6 100644 GIT binary patch literal 2193 zcmcIk(NY^X6uq+727>_ub^v1>g|q>hh9QBrQ{I}?$#ka8G$E5dGMil)Z@Nf3yINfS zq(9M@enFr58U2tx^+@s>$4)ZSnbsGvS65f(oO`9+zkmAUuX2eP;V1rl`#W{dkB)lh zPjeZZKT(%SuEld9LJ{_UNe+`NpoLx-syxl|nA5T-{KH`+IX$5Ehj)Wu{+ZBc+Sh_= z&y-fqEx*hq)s=iKE+Xkd3rhB6==|y+3PT}jF;Fs$bflyoQ{`!_d`-WO6lPox1lLOY zF^5i(MnVRH@ArN@;L@t+Z?0`l68qO8MJi8)9}H|P7FQzXPx3SsQh#qJ_xZy^{%R0q zJd#12hr%(48|)EmUjYo_LjO_j4)C4#&k@>tVcA3DDY0$Le4 z=a%@<(Ny4gI&gACbEl_TTqa}ZQ4u*N@3B&GF@0D#Cx!Dx;e18aRNx39#DRTDUiNb) zXaOhmTBI4;ObsDJk@|5Tcfs^MqsH`&An(%G11cwKNZxZL1$}L9j>$$_e9g0Aq=SKN zADXG&ycK~q-8VhU5)nlGNQ6AIcVb?O;poiIbQ;MEs-2!1(ARznc_Qu`wJzg9?+S;7 zLkvW81%%;17)EedEN&b}9fFSb-c^+fou|^BY2eO%q~YXW;QB-Vn)g$6S-d>IQ3aQr zQOUea#wiz$NA!Z`VKr;(v`#J9#@O2AtV12znXxW)={Ahd*d3a-UD~BjX6#d%wtF;f zdsee4!8%p*DA62VTjstG-UXhf*wNfRE99Z31(VE>yhwFgLSPwV1*3tnim`@KL)mp| z;@P5GD7{9T7+dh$7~AkW7%#RM?J(*xTDSeXHF7+}Z!_YIHcWhu(ITTIM$3#=7&REJ zGFoe6wP}`Fl~L0zx|}AKTi9b3o4{-tr;5$US_JeRM!T4pXvqeb9D)G>YSXTKi~LQC zFy3LO*s%#Q*ntQBmch9V51dG}oLz8knXPq$G08cJfVIxM_;w2X4)DDKzXK)&43p!; zq~Vebtz+*%_O_LM3>}zQ9sAJHHWaO*mhQNgf(y7y#cFfBI;j&%Kxrh5`Hd2%$tVE? zlypXYFlD{3WCRV7<(-vbRzF(u>W53-DfG|6{x8*;j_%L2>OZf~R5jVi_np|R3{&w( zPi$@G#LV5n_vi(&4C7N5mMX97> P*)r*rkqn;1RzDG6q^uO+ 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: