George wrote:
> On Mon, 2 Feb 1998, ;P wrote:
> >"exp = pow(2, level) * 1000" will give you something close to the above
>
> Ugh, try 'exp = level * level * 1000;' It'll eliminate a function call,
> give the same results and not require the math library.
>
> >int exp_to_level(struct char_data *ch)
> >{
> > float exp;
>
I have done something similar, but I fill an array with the values of
the formula when the mud boots up. Works fine to me.
Also, i have a program (exp tester, by Mark Dickey) that have some
formulas. You can ask him for it (mailto:mark@bestweb.net).
> > extern struct int_app_type int_app[];
> > extern struct wis_app_type wis_app[];
> > extern int exp_needed[];
> > extern float class_exp_mod[];
>
> Out you evil daemons of nested externs!
> (Try -Wnested-extern on CircleMUD and you'll see what I mean.)
>
Please, explain it (I don't have a machine to test it)
--
Leonardo Herrera L.
mailto:leherrer@entelchile.net
http://www.geocities.com/TimesSquare/Castle/4515/
"Me voy a subai, me voy a costai, me voy a tapai y
me voy a hacei tuto."
-- Ruy
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST