[Circle] [saving throws]

From: invincibill (long@hercules.ntsource.com)
Date: 11/24/96


here's what i found.  the do_stat func doesnt check base saving throws. 
it just checks any additional saving affects from equip or spells.(as
far as i could tell)  

to get it to list the chars saving throw, just add to the GET_SAVE(k) in
do_stat the appropriate saving throw from the saving_throw[] in magic.c.

here is a very brief cut, copy of the way i did it..
--->snip...

  sprintf(buf, "AC: [%d/10], Hitroll: [%2d], Damroll: [%2d],Saving
throws: 
           [%d/%d/%d/%d/%d]\r\n",
          GET_AC(k), k->points.hitroll, k->points.damroll,
          (GET_SAVE(k, 0)+saving_throws[(int) GET_CLASS(k)][0]
                [(int) GET_LEVEL(k)]),
          (GET_SAVE(k, 1)+saving_throws[(int) GET_CLASS(k)][1]
                [(int) GET_LEVEL(k)]),
          (GET_SAVE(k, 2)+saving_throws[(int) GET_CLASS(k)][2]
                [(int) GET_LEVEL(k)]),
          (GET_SAVE(k, 3)+saving_throws[(int) GET_CLASS(k)][3]
                [(int) GET_LEVEL(k)]),
snip----->

etc etc

-bill
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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