> 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...
agree
Magnus
E-mail-> dal97mlm@mds.mdh.se
WWW-> mds.mdh.se/~dal97mlm/
ICQ UIN -> 3959951
_______________________________________
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST