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": {
|
||||
"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 "prc_inc_racial"
|
||||
#include "inc_ecl"
|
||||
|
||||
//:: CONSTANTS
|
||||
//:: You can adjust these constants to suit your module
|
||||
@ -490,78 +491,77 @@ 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;
|
||||
else if (iXP >= 1653000) iXP = 58;
|
||||
else if (iXP >= 1596000) iXP = 57;
|
||||
else if (iXP >= 1540000) iXP = 56;
|
||||
else if (iXP >= 1485000) iXP = 55;
|
||||
else if (iXP >= 1431000) iXP = 54;
|
||||
else if (iXP >= 1378000) iXP = 53;
|
||||
else if (iXP >= 1326000) iXP = 52;
|
||||
else if (iXP >= 1275000) iXP = 51;
|
||||
else if (iXP >= 1225000) iXP = 50;
|
||||
else if (iXP >= 1176000) iXP = 49;
|
||||
else if (iXP >= 1128000) iXP = 48;
|
||||
else if (iXP >= 1081000) iXP = 47;
|
||||
else if (iXP >= 1035000) iXP = 46;
|
||||
else if (iXP >= 990000) iXP = 45;
|
||||
else if (iXP >= 946000) iXP = 44;
|
||||
else if (iXP >= 903000) iXP = 43;
|
||||
else if (iXP >= 861000) iXP = 42;
|
||||
else if (iXP >= 820000) iXP = 41;
|
||||
else if (iXP >= 780000) iXP = 40;
|
||||
else if (iXP >= 741000) iXP = 39;
|
||||
else if (iXP >= 703000) iXP = 38;
|
||||
else if (iXP >= 666000) iXP = 37;
|
||||
else if (iXP >= 630000) iXP = 36;
|
||||
else if (iXP >= 595000) iXP = 35;
|
||||
else if (iXP >= 561000) iXP = 34;
|
||||
else if (iXP >= 528000) iXP = 33;
|
||||
else if (iXP >= 496000) iXP = 32;
|
||||
else if (iXP >= 465000) iXP = 31;
|
||||
else if (iXP >= 435000) iXP = 30;
|
||||
else if (iXP >= 406000) iXP = 29;
|
||||
else if (iXP >= 378000) iXP = 28;
|
||||
else if (iXP >= 351000) iXP = 27;
|
||||
else if (iXP >= 325000) iXP = 26;
|
||||
else if (iXP >= 300000) iXP = 25;
|
||||
else if (iXP >= 276000) iXP = 24;
|
||||
else if (iXP >= 253000) iXP = 23;
|
||||
else if (iXP >= 231000) iXP = 22;
|
||||
else if (iXP >= 210000) iXP = 21;
|
||||
else if (iXP >= 190000) iXP = 20;
|
||||
else if (iXP >= 171000) iXP = 19;
|
||||
else if (iXP >= 153000) iXP = 18;
|
||||
else if (iXP >= 136000) iXP = 17;
|
||||
else if (iXP >= 120000) iXP = 16;
|
||||
else if (iXP >= 105000) iXP = 15;
|
||||
else if (iXP >= 91000) iXP = 14;
|
||||
else if (iXP >= 78000) iXP = 13;
|
||||
else if (iXP >= 66000) iXP = 12;
|
||||
else if (iXP >= 55000) iXP = 11;
|
||||
else if (iXP >= 45000) iXP = 10;
|
||||
else if (iXP >= 36000) iXP = 9;
|
||||
else if (iXP >= 28000) iXP = 8;
|
||||
else if (iXP >= 21000) iXP = 7;
|
||||
else if (iXP >= 15000) iXP = 6;
|
||||
else if (iXP >= 10000) iXP = 5;
|
||||
else if (iXP >= 6000) iXP = 4;
|
||||
else if (iXP >= 3000) iXP = 3;
|
||||
else if (iXP >= 1000) iXP = 2;
|
||||
else iXP = 1;
|
||||
iXP = GetXP(oPC);
|
||||
if (iXP >= 1770000) iXP = 60;
|
||||
else if (iXP >= 1711000) iXP = 59;
|
||||
else if (iXP >= 1653000) iXP = 58;
|
||||
else if (iXP >= 1596000) iXP = 57;
|
||||
else if (iXP >= 1540000) iXP = 56;
|
||||
else if (iXP >= 1485000) iXP = 55;
|
||||
else if (iXP >= 1431000) iXP = 54;
|
||||
else if (iXP >= 1378000) iXP = 53;
|
||||
else if (iXP >= 1326000) iXP = 52;
|
||||
else if (iXP >= 1275000) iXP = 51;
|
||||
else if (iXP >= 1225000) iXP = 50;
|
||||
else if (iXP >= 1176000) iXP = 49;
|
||||
else if (iXP >= 1128000) iXP = 48;
|
||||
else if (iXP >= 1081000) iXP = 47;
|
||||
else if (iXP >= 1035000) iXP = 46;
|
||||
else if (iXP >= 990000) iXP = 45;
|
||||
else if (iXP >= 946000) iXP = 44;
|
||||
else if (iXP >= 903000) iXP = 43;
|
||||
else if (iXP >= 861000) iXP = 42;
|
||||
else if (iXP >= 820000) iXP = 41;
|
||||
else if (iXP >= 780000) iXP = 40;
|
||||
else if (iXP >= 741000) iXP = 39;
|
||||
else if (iXP >= 703000) iXP = 38;
|
||||
else if (iXP >= 666000) iXP = 37;
|
||||
else if (iXP >= 630000) iXP = 36;
|
||||
else if (iXP >= 595000) iXP = 35;
|
||||
else if (iXP >= 561000) iXP = 34;
|
||||
else if (iXP >= 528000) iXP = 33;
|
||||
else if (iXP >= 496000) iXP = 32;
|
||||
else if (iXP >= 465000) iXP = 31;
|
||||
else if (iXP >= 435000) iXP = 30;
|
||||
else if (iXP >= 406000) iXP = 29;
|
||||
else if (iXP >= 378000) iXP = 28;
|
||||
else if (iXP >= 351000) iXP = 27;
|
||||
else if (iXP >= 325000) iXP = 26;
|
||||
else if (iXP >= 300000) iXP = 25;
|
||||
else if (iXP >= 276000) iXP = 24;
|
||||
else if (iXP >= 253000) iXP = 23;
|
||||
else if (iXP >= 231000) iXP = 22;
|
||||
else if (iXP >= 210000) iXP = 21;
|
||||
else if (iXP >= 190000) iXP = 20;
|
||||
else if (iXP >= 171000) iXP = 19;
|
||||
else if (iXP >= 153000) iXP = 18;
|
||||
else if (iXP >= 136000) iXP = 17;
|
||||
else if (iXP >= 120000) iXP = 16;
|
||||
else if (iXP >= 105000) iXP = 15;
|
||||
else if (iXP >= 91000) iXP = 14;
|
||||
else if (iXP >= 78000) iXP = 13;
|
||||
else if (iXP >= 66000) iXP = 12;
|
||||
else if (iXP >= 55000) iXP = 11;
|
||||
else if (iXP >= 45000) iXP = 10;
|
||||
else if (iXP >= 36000) iXP = 9;
|
||||
else if (iXP >= 28000) iXP = 8;
|
||||
else if (iXP >= 21000) iXP = 7;
|
||||
else if (iXP >= 15000) iXP = 6;
|
||||
else if (iXP >= 10000) iXP = 5;
|
||||
else if (iXP >= 6000) iXP = 4;
|
||||
else if (iXP >= 3000) iXP = 3;
|
||||
else if (iXP >= 1000) iXP = 2;
|
||||
else iXP = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
iXP = GetHitDice(oPC);
|
||||
}
|
||||
iXP = GetECL(oPC);
|
||||
} */
|
||||
|
||||
return iXP;
|
||||
}
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user