version 1.41 | | version 1.42 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.41 2004/08/15 17:03:08 ryo_saeba Exp $"; | | * "$Id: c_misc.c,v 1.42 2004/10/10 15:01:26 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
pl->contr->orig_stats.Cha, pl->stats.Cha, 20+pl->arch->clone.stats.Cha); | | pl->contr->orig_stats.Cha, pl->stats.Cha, 20+pl->arch->clone.stats.Cha); |
new_draw_info_format(NDI_UNIQUE, 0, pl, "\nAttack Mode: %s",pl->contr->peaceful? "Peaceful":"Hostile"); | | new_draw_info_format(NDI_UNIQUE, 0, pl, "\nAttack Mode: %s",pl->contr->peaceful? "Peaceful":"Hostile"); |
| | |
| | /* If dragon player, let's display natural resistances */ |
| | if ( is_dragon_pl( pl ) ) |
| | { |
| | int attack; |
| | object* tmp; |
| | for ( tmp = pl->inv; tmp != NULL; tmp = tmp->below ) |
| | { |
| | if ( ( tmp->type == FORCE ) && ( strcmp( tmp->arch->name, "dragon_skin_force" )== 0 ) ) |
| | { |
| | new_draw_info( NDI_UNIQUE, 0, pl, "\nNatural skin resistances:" ); |
| | for ( attack = 0; attack < NROFATTACKS; attack++ ) |
| | { |
| | if ( atnr_is_dragon_enabled( attack ) ) |
| | { |
| | new_draw_info_format( NDI_UNIQUE, 0, pl, "%s: %d", change_resist_msg[ attack ], tmp->resist[ attack ] ); |
| | } |
| | } |
| | break; |
| | } |
| | } |
| | } |
| | |
/* Can't think of anything else to print right now */ | | /* Can't think of anything else to print right now */ |
return 0; | | return 0; |
} | | } |