Re: [NEWBIE] [CODE QUESTION] Saving Throws Formula instead of case statements?

From: Sam Ives (xym@CABLESPEED.COM)
Date: 02/20/03


byte saving_throws(int class_num, int type, int level)
{
 if( level >= 100 )
           return 0;
 else
    return (100 - level);
}

This is based on a 100 Level Class system, it sets all the classes
to the same saving throws.

Lev 1 = 99 save to all
Lev 5 = 95 save to all
Lev 25 = 75 save to all

and so on.


TriForia
telnet://24.56.217.130:4000

--
   +---------------------------------------------------------------+
   | 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/26/03 PDT