Re: Damage messages and types (fight.c)

From: QA Developer (
Date: 03/26/99

What this is saying:

>>   if (!IS_WEAPON(attacktype))

If this is not a weapon of attack type display this:

>>     skill_message(dam, ch, victim, attacktype);

>>   else {

otherwise (it is a weapon)
>>     if (GET_POS(victim) == POS_DEAD || dam == 0) {

Now check if the victim is dead or no damage
if it is
>>       if (!skill_message(dam, ch, victim, attacktype))
>>         dam_message(dam, ch, victim, attacktype);
(this if is a single line version)

This else is part of the first if (!is_weapon) which means  it failed both
there may be a cleaner way to write it but it is valid.

>>     } else {
>>       dam_message(dam, ch, victim, attacktype);
>>     }
>>   }

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

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