Difference for common/item.c from version 1.54 to 1.55


version 1.54 version 1.55
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *   "$Id: item.c,v 1.54 2005/10/28 19:08:53 akirschbaum Exp $";   *   "$Id: item.c,v 1.55 2005/11/16 08:16:00 mwedel Exp $";
  */   */
   
 /*  /*
Line 840
 
Line 840
     }      }
     if(QUERY_FLAG(op,FLAG_UNDEAD))      if(QUERY_FLAG(op,FLAG_UNDEAD))
  strcat(retbuf,"(undead)");   strcat(retbuf,"(undead)");
     if(QUERY_FLAG(op,FLAG_CAN_PASS_THRU))  
  strcat(retbuf,"(pass through doors)");  
     if(QUERY_FLAG(op,FLAG_SEE_INVISIBLE))      if(QUERY_FLAG(op,FLAG_SEE_INVISIBLE))
  strcat(retbuf,"(see invisible)");   strcat(retbuf,"(see invisible)");
     if(QUERY_FLAG(op,FLAG_USE_WEAPON))      if(QUERY_FLAG(op,FLAG_USE_WEAPON))
Line 1128
 
Line 1126
  }   }
  if(QUERY_FLAG(op,FLAG_XRAYS))   if(QUERY_FLAG(op,FLAG_XRAYS))
      strcat(retbuf,"(xray-vision)");       strcat(retbuf,"(xray-vision)");
  if(QUERY_FLAG(op,FLAG_FLYING))  
      strcat(retbuf,"(levitate)");  
  if(QUERY_FLAG(op,FLAG_SEE_IN_DARK))   if(QUERY_FLAG(op,FLAG_SEE_IN_DARK))
      strcat(retbuf,"(infravision)");       strcat(retbuf,"(infravision)");
   
    /* levitate was what is was before, so we'll keep it */
    if (op->move_type & MOVE_FLY_LOW)
        strcat(retbuf,"(levitate)");
   
    if (op->move_type & MOVE_FLY_HIGH)
        strcat(retbuf,"(fly)");
   
    if (op->move_type & MOVE_SWIM)
        strcat(retbuf,"(swim)");
   
    /* walking is presumed as 'normal', so doesn't need mentioning */
   
  if(op->item_power) {   if(op->item_power) {
      sprintf(buf,"(item_power %+d)",op->item_power);       sprintf(buf,"(item_power %+d)",op->item_power);
      strcat(retbuf,buf);       strcat(retbuf,buf);
Line 1266
 
Line 1274
  return 1;   return 1;
   
     /* Check for stealty, speed, flying, or just plain magic in the boots */      /* Check for stealty, speed, flying, or just plain magic in the boots */
       /* Presume any boots that hvae a move_type are special. */
     if (op->type== BOOTS &&       if (op->type== BOOTS &&
  (QUERY_FLAG(op, FLAG_STEALTH) || QUERY_FLAG(op, FLAG_FLYING) ||   ((QUERY_FLAG(op, FLAG_STEALTH) || op->move_type ||  op->stats.exp)))
  op->stats.exp))  
  return 1;   return 1;
   
     /* Take care of amulet/shield that reflects spells/missiles */      /* Take care of amulet/shield that reflects spells/missiles */


Legend:
line(s) removed in v.1.54 
line(s) changed
 line(s) added in v.1.55

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