> Here's a much smaller version of the saving thow code that was new in BPL13.
> It will return almost the same values as the old array did (within 2/90),
> but allows for much easier additions and modifications. Feel free to use it
> anywhere, so long as you leave the comment with my name in it (You don't
> need to add it to the credits or anything, but it would be nice :)
YES! YES! Someone ELSE AGREES WITH ME!!!!
The huge switch statements in class.c add a lot of TOTALLY
USELESS LINES OF CODE TO THE PROGRAM!!!!
GOOD GRIEF!
--- rant over ---
Personally, I just deleted the return statements and did something
like this:
return (MAX(90 - level * 2, 0));
...
Works for both thac0 and saving throws.
See my next contribution for more DG-Script / bpl13 bugs.
+------------------------------------------------------------+
| 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