Re: [Code Question] Advance in class.c

From: George (greerga@CIRCLEMUD.ORG)
Date: 10/19/98


On Sat, 17 Oct 1998, Del Minturn wrote:

>  add_hp = con_app[GET_CON(ch)].hitp;
>
>The line above is similar to :
>
>   GET_PRACTICES(ch) += MAX(2, wis_app[GET_WIS(ch)].bonus);
[...]
>  {0},  /* wis = 0 */
>  {0},  /* wis = 1 */
>  {0},
[...]
>However some of the other _app's have more than one variable as in
>the add_hp above has con_app:
>  {-4, 20},             /* con = 0 */
>  {-3, 25},             /* con = 1 */
>  {-2, 30},
>  .
>  .
>
>My question is.. What is the difference and how does the con_app work?

Difference being the con_app is used for hitpoint modifiers so the table
should be taken verbatim.  The wisdom code gives at least 2 or the bonus in
the table.

>Has anyone changed this to vary the mana over the levels???

It does vary, number() returns a random number. :)

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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