Difference for common/item.c from version 1.34 to 1.35


version 1.34 version 1.35
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *   "$Id: item.c,v 1.34 2003/02/07 06:57:16 garbled Exp $";   *   "$Id: item.c,v 1.35 2003/02/14 05:50:28 garbled Exp $";
  */   */
   
 /*  /*
Line 363
 
Line 363
     DESCRIBE_PATH_SAFE(buf, op->path_attuned, "Attuned", &len, VERY_BIG_BUF);      DESCRIBE_PATH_SAFE(buf, op->path_attuned, "Attuned", &len, VERY_BIG_BUF);
     DESCRIBE_PATH_SAFE(buf, op->path_repelled, "Repelled", &len, VERY_BIG_BUF);      DESCRIBE_PATH_SAFE(buf, op->path_repelled, "Repelled", &len, VERY_BIG_BUF);
     DESCRIBE_PATH_SAFE(buf, op->path_denied, "Denied", &len, VERY_BIG_BUF);      DESCRIBE_PATH_SAFE(buf, op->path_denied, "Denied", &len, VERY_BIG_BUF);
     if(op->item_power)  
  sprintf(buf+strlen(buf), "(item_power %+d)",op->item_power);  
   
       /*    if(op->item_power)
    sprintf(buf+strlen(buf), "(item_power %+d)",op->item_power);
       */
     if(buf[0] == 0 && op->type!=SKILL)      if(buf[0] == 0 && op->type!=SKILL)
  strcpy(buf,"of adornment");   strcpy(buf,"of adornment");
   
Line 504
 
Line 505
      */       */
     if (QUERY_FLAG(op,FLAG_KNOWN_MAGICAL) && !QUERY_FLAG(op,FLAG_IDENTIFIED))      if (QUERY_FLAG(op,FLAG_KNOWN_MAGICAL) && !QUERY_FLAG(op,FLAG_IDENTIFIED))
  safe_strcat(buf[use_buf], " (magic)", &len, HUGE_BUF);   safe_strcat(buf[use_buf], " (magic)", &len, HUGE_BUF);
   
       if(op->item_power)
    sprintf(buf[use_buf]+strlen(buf[use_buf]), "(item_power %+d)",
        op->item_power);
   
     if(QUERY_FLAG(op,FLAG_APPLIED)) {      if(QUERY_FLAG(op,FLAG_APPLIED)) {
  switch(op->type) {   switch(op->type) {
    case BOW:     case BOW:
Line 564
 
Line 570
     if ((IS_ARMOR(op) || IS_WEAPON(op)) && op->materialname)      if ((IS_ARMOR(op) || IS_WEAPON(op)) && op->materialname)
  mt = name_to_material(op->materialname);   mt = name_to_material(op->materialname);
   
     if ((IS_ARMOR(op) || IS_WEAPON(op)) && op->materialname && mt) {      if ((IS_ARMOR(op) || IS_WEAPON(op)) && op->materialname && mt &&
    op->arch->clone.materialname != mt->name &&
    !(op->material & M_SPECIAL)) {
  strcpy(buf, mt->description);   strcpy(buf, mt->description);
  len=strlen(buf);   len=strlen(buf);
  safe_strcat(buf, " ", &len, MAX_BUF);   safe_strcat(buf, " ", &len, MAX_BUF);
Line 924
 
Line 932
      sprintf(buf,"(ac%+d)",op->stats.ac);       sprintf(buf,"(ac%+d)",op->stats.ac);
      strcat(retbuf,buf);       strcat(retbuf,buf);
  }   }
  if (op->type==WEAPON && op->level>0) {   if ((op->type==WEAPON || op->type == BOW) && op->level>0) {
      sprintf(buf,"(improved %d/%d)",op->last_eat,op->level);       sprintf(buf,"(improved %d/%d)",op->last_eat,op->level);
      strcat(retbuf,buf);       strcat(retbuf,buf);
  }   }


Legend:
line(s) removed in v.1.34 
line(s) changed
 line(s) added in v.1.35

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