Updated XP system to use GetECL()

Updated XP system to use GetECL().  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904 2024-12-21 21:03:41 -05:00
parent 82eba3a5af
commit 465c15d58f
6 changed files with 67 additions and 67 deletions

View File

@ -2228,7 +2228,7 @@
},
"Value": {
"type": "int",
"value": 1
"value": 0
}
},
{

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -8,6 +8,7 @@
//////////////////////////////////////////////////
#include "inc_debug"
#include "prc_inc_racial"
#include "inc_ecl"
//:: CONSTANTS
//:: You can adjust these constants to suit your module
@ -490,12 +491,11 @@ int GetMaxXP(object oPC)
int GetLevelFromXP(object oPC)
{
//Changed to check HD not XP!
int iXP;
int iXP = GetECL(oPC);
//If we are checking their XP to consider what level they are..
/* //If we are checking their XP to consider what level they are..
if(XP_CHECK)
{
iXP = GetXP(oPC);
if (iXP >= 1770000) iXP = 60;
else if (iXP >= 1711000) iXP = 59;
@ -560,8 +560,8 @@ int GetLevelFromXP(object oPC)
}
else
{
iXP = GetHitDice(oPC);
}
iXP = GetECL(oPC);
} */
return iXP;
}