>int thaco(int chclass, int level) {
> float mult;
> switch (chclass) {
> case CLASS_WARRIOR: mult = 0.25;break;
> case CLASS_THIEF : mult = 0.14;break;
> default: mult = -1; log("error"); break;
> }
>
> return (MAX(1,(int) 20 - mult * level));
>}
hey, thanx a lot :) i will use this for saves aswell.. it will save me up to
like 28000[1]ish lines of code.. for my 40 classes that are to be in a
multiclass system..
_________________________________________________________________
På MSN hittar du det roliga, intressanta och användbara på internet:
http://www.msn.se
--
+---------------------------------------------------------------+
| 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/25/03 PDT