I have just toyed around with the exp_per_level function on a modified ROM codebase. What I am attempting to do seemed quite simple but for some reason I am stuck with a strange return.
[code] int exp_per_level(CHAR_DATA *ch, int points)
{
int expl,multip,tnl;
expl = 0;
tnl = UMAX(1000,points*25);
if (ch->level > 10)
{
multip = (ch->level - 5) / 5;
expl = tnl * (multip + 1);
}
else
{
expl = tnl;
}
return expl * pc_race_table[ch->race].class_mult[ch->class]/100;
}[/quote]
Starting at level 11 the exp_per_level begins to multiply (or at least it should). I can advance characters to each multipler jump (11,16,21 etc.) and the tnl works just fine. When a player levels from 10 to 11 the old fashion way the 11 to 12 tnl is outrageous, upwards of 14000.
What am I missing?
|