fight.c:
        if ( dt >= 0 && dt < MAX_SKILL )
            attack      = skill_table[dt].noun_damage;
        else if ( dt >= TYPE_HIT && dt < TYPE_HIT + MAX_DAMAGE_MESSAGE)
            attack      = attack_table[dt - TYPE_HIT].noun;

So yeah.. if dt is bigger than 1000, the type is
attack_table[dt-TYPE_HIT].damage
Otherwise, you have the gsn for the skill that caused the damage.

TandonMiir wrote:
> 
> Hrmmm...   In the dam_message function in fight.c I am trying to make custom
> messages based on damage type.
> 
> Is there a set of variables that I can assign to dt, the variable in
> dam_message that will be able to determine between damage types?
> 
> The damage classes section of merc.h (used for area files) doesn't respond
> (and ironically DAM_SLASH lets everything through it's if statement ??)
> 
> The damage types section of merc.h only has TYPE_UNDEFINED and TYPE_HIT...
> which seems a bit sparse.
> 
> Any help would be appriciated.
> 
> ~Tandon
> 
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom

-- 
Any damn fool can get complicated. It takes genius to attain simplicity.
~ Pete Seeger

Reply via email to