On Fri, 3 Apr 1998, Malcor wrote:
> > act("$n says 'GNAP!' and bites your tush!", 1, ch, 0,
> > vict, TO_VICT);
> > GET_MAX_HIT(vict) = GET_MAX_HIT(vict) - 1;
>
> Just a quick one wont this heal a player to one below max?
>
Nope. That reduces someone's MAXIMUM hit points by one point.
Perhaps it should have been written:
GET_MAX_HIT(vict)--;
to be more precise and clear??
To heal all but one HP, you would do:
GET_HIT(vict) = GET_MAX_HIT(vict) - 1;
John Evans <evansj@hi-line.net> -- http://www.hi-line.net/~evansj/
Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke
+------------------------------------------------------------+
| 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