Re: damage function

From: Skylar (
Date: 06/10/96

On Mon, 10 Jun 1996 wrote:

> Can someone explain what the following means in the
> do_bash function (for an example)
> damage(ch, vict, 1, SKILL_BASH);
> Does the one signify true, or is it the actual damage done
> when the skill is a success?

It specifies the actual damage... you could change it to something like
damage(ch, vict, number(1, GET_STR(ch)), SKILL_BASH);
for a nice variable damaging bash.

For failures, just use 0 as the amount of damage and the standard miss
message (from lib/etc/messages, or code generated) will show up.

> Also, is there a maximum damage allowed set somewhere, if so in what file?

In fight.c, function damage()  ... search for GET_HIT( and it'll be
just above above that.


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