Re: [CODE] Some freeky advance problems

From: Daniel A. Koepke (dkoepke@california.com)
Date: 08/22/99


Today, Phillip A Ames spake to the list:

> Since all the levels for each of the classes need the same EXP to
> level, I made level_exp's declaration void level_exp(int level) and
> this is how I'm calling it from do_advance...

Err, level_exp shouldn't be a 'void' since it's returning an integer.  At
least, that's how you're using it.

>   while(level_exp((GET_CLASS_LEV(ch, classnum) + 1) - GET_EXP(ch)) < 0)

Why are you subtrating their experience points from their class level?!
That's your problem.

-dak


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST