Updated XP system to use GetECL()
Updated XP system to use GetECL(). Full compile. Updated release archive.
This commit is contained in:
parent
82eba3a5af
commit
465c15d58f
@ -2228,7 +2228,7 @@
|
|||||||
},
|
},
|
||||||
"Value": {
|
"Value": {
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"value": 1
|
"value": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -8,6 +8,7 @@
|
|||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
#include "inc_debug"
|
#include "inc_debug"
|
||||||
#include "prc_inc_racial"
|
#include "prc_inc_racial"
|
||||||
|
#include "inc_ecl"
|
||||||
|
|
||||||
//:: CONSTANTS
|
//:: CONSTANTS
|
||||||
//:: You can adjust these constants to suit your module
|
//:: You can adjust these constants to suit your module
|
||||||
@ -490,12 +491,11 @@ int GetMaxXP(object oPC)
|
|||||||
int GetLevelFromXP(object oPC)
|
int GetLevelFromXP(object oPC)
|
||||||
{
|
{
|
||||||
//Changed to check HD not XP!
|
//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)
|
if(XP_CHECK)
|
||||||
{
|
{
|
||||||
|
|
||||||
iXP = GetXP(oPC);
|
iXP = GetXP(oPC);
|
||||||
if (iXP >= 1770000) iXP = 60;
|
if (iXP >= 1770000) iXP = 60;
|
||||||
else if (iXP >= 1711000) iXP = 59;
|
else if (iXP >= 1711000) iXP = 59;
|
||||||
@ -560,8 +560,8 @@ int GetLevelFromXP(object oPC)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
iXP = GetHitDice(oPC);
|
iXP = GetECL(oPC);
|
||||||
}
|
} */
|
||||||
|
|
||||||
return iXP;
|
return iXP;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user