Re: The First Snippet we Never forget

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 12/11/01


On Mon, Dec 10, 2001 at 06:46:14PM -0200, Nikolas wrote:
>::::::::::::::::::::::::::::::::::::::::::::::::
>  if (gain > 0) {
>    gain = MIN(max_exp_gain, gain); /* put a cap on the max gain per kill */
>    GET_EXP(ch) += gain;
>    while (GET_LEVEL(ch) < LVL_IMMORT &&
> GET_EXP(ch) >= level_exp(GET_CLASS(ch), GET_LEVEL(ch) + 1)) {
>      GET_LEVEL(ch) += 1;
>      num_levels++;
>      advance_level(ch);
>      is_altered = TRUE;
>::::::::::::::::::::::::::::::::::::::::::::::::
>In the "while (GET_LEVEL(ch) < LVL_IMMORT %%" translate LVL_IMMORT to lvl
>you want to stop the "Your rise a level!" of players...

Wouldn't "GET_LEVEL(ch) < (LVL_IMMORT - 1)"  be easier than hard-coding
the level?

-me

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT