Re: [CODE]Exp formula

From: Dustin E. Miller (miller32@net66.com)
Date: 01/31/01


>> Peter Ajamian suggested:
>> return (get_exp(level - 1) + MIN(((level + 4) / 5) * 10000, 50000));
hmm, i've had to modify this a bit and when i compile it gives invalid type
argument '->' heres what exp_to_level looks like..
int exp_to_level(struct char_data *ch)
{
  int modifier, exp;
  float cmodifier;
  if (GET_LEVEL(ch) < 5)
    modifier = 1;
  else if (GET_LEVEL(ch) < 7)
    modifier = 2;
etc..
   }
  exp = GET_LEVEL(ch) * modifier * cmodifier * 20;
   return (get_exp(get_level(ch) - 1) + MIN(((get_level(ch) + 4) / 5) *
10000, 50000));
   return exp;
}

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST