Re: [CODE HELP NEEDED] Attack Types

From: Magnus Lindström (
Date: 02/18/99

> Well... if you want to include the type in the attack as well you'll need
> to change the interface to the damage function at the minimum... that
> would obviously require changing every invocation of the damage
> function...

well.. since there already is a pointer to the attacking character
sent as a parameter to the damage function a macro like
GET_TYPE(ch) ((ch)->char_specials.saved.type)
would do the trick.

> I would personally suggest using bits to represent different types, that
> way if you had a Fire Elemental Holy Knight he could be both Fire and
> Holy...  but I digress.  I would also suggest using vulnerabilities as
> opposed to resistances, since it'll be easier to deal with...



ICQ UIN -> 3959951

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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