> Of course I could be wrong... I'm not sure exactly how to check the > even/odd-ness of integers in C. > > Here is an attempt at what it might look like: > [*WARNING: PSUEDO-CODE*] > > int slevel; > int base; > > switch (level) { > case 0: return 90; break; > case 1: return 70; break; > default: > base = 70; > for (slevel = level; slevel > 0; slevel--) { if (!(slevel % 2)) base -= 1; else base -= 2; } break; } +------------------------------------------------------------+ | 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