Difference for server/c_misc.c from version 1.73 to 1.74


version 1.73 version 1.74
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_misc_c =   * static char *rcsid_c_misc_c =
  *   "$Id: c_misc.c,v 1.73 2005/12/07 18:25:55 akirschbaum Exp $";   *   "$Id: c_misc.c,v 1.74 2005/12/13 22:17:18 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 865
 
Line 865
  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;
 }  }
Line 1149
 
Line 1127
  new_draw_info_format(NDI_UNIQUE, 0, op, "%-20s %+5d",    new_draw_info_format(NDI_UNIQUE, 0, op, "%-20s %+5d",
  attacktype_desc[i], op->resist[i]);   attacktype_desc[i], op->resist[i]);
     }      }
   
       /* If dragon player, let's display natural resistances */
       if ( is_dragon_pl( op ) )
           {
           int attack;
           object* tmp;
           for ( tmp = op->inv; tmp != NULL; tmp = tmp->below )
               {
               if ( ( tmp->type == FORCE ) && ( strcmp( tmp->arch->name, "dragon_skin_force" )== 0 ) )
                   {
                   new_draw_info( NDI_UNIQUE, 0, op, "\nNatural skin resistances:" );
                   for ( attack = 0; attack < NROFATTACKS; attack++ )
                       {
                       if ( atnr_is_dragon_enabled( attack ) )
                           {
                           new_draw_info_format( NDI_UNIQUE, 0, op, "%s: %d", change_resist_msg[ attack ], tmp->resist[ attack ] );
                           }
                       }
                   break;
                   }
               }
           }
   
   return 0;    return 0;
 }  }
 /*  /*
Line 1687
 
Line 1688
             {              {
             if ( quest_is_quest_marker( item, 0 ) )              if ( quest_is_quest_marker( item, 0 ) )
                 {                  {
                 new_draw_info( NDI_WHITE, 0, pl, item->name );                  new_draw_info( NDI_WHITE, 0, pl, quest_get_name( item ) );
                 new_draw_info( NDI_WHITE, 0, pl, "\n" );                  new_draw_info( NDI_WHITE, 0, pl, "\n" );
                 }                  }
             }              }


Legend:
line(s) removed in v.1.73 
line(s) changed
 line(s) added in v.1.74

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:26