Re: [CODE] [QUESTION]: APPLY_HIT

From: Matt Knecht (hex@VOICENET.COM)
Date: 03/30/98


On Mon, 30 Mar 1998, Patrick J. Dughi wrote:
>> I have a slight problem with APPLY_HIT. I have a spell that
>> will drain all mana from the caster and add them onto the hitpoints
>> of the caster. When I do this with my HIGH LORD
>> (hitpoints 5000, mana 5000) the "affected" command shows the following:
>>
>> (12h) song of life      -120 to HITPOINTS
>>
>>
>        Well, it looks like the modifier is defined as an sbyte, or in
>otherwords, a signed char :+/- 256 (uh....i think) you might want to
>change it to something else more applicable.

-128 to 127, actually.

But yes, this is the problem.  Just search through structs.h for
"struct affected_type {".  It'll be hard to miss since it's right
below the line that says "*DO*NOT*CHANGE*" :P

You'l either have to do a pfile wipe, or a pfile conversion or you'll
whack your pfiles.

--
Hextall, an Implementor of Exile  *    888`98  9b.dP  888  888     888`98
exile.linex.com 4000              *    888+8,   d8b   888  888  ,  888+8,
The mud you've been looking for   *    888,d8  d8 9b  888  888,d8  888,d8


     +------------------------------------------------------------+
     | 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