Difference for common/item.c from version 1.49 to 1.50


version 1.49 version 1.50
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *   "$Id: item.c,v 1.49 2005/08/12 13:46:34 ryo_saeba Exp $";   *   "$Id: item.c,v 1.50 2005/09/03 19:15:45 tchize Exp $";
  */   */
   
 /*  /*
Line 824
 
Line 824
  strcpy(retbuf,"(unidentified)");   strcpy(retbuf,"(unidentified)");
  identified = 0;   identified = 0;
     }      }
   
     switch(op->type) {      switch(op->type) {
  case BOW:   case BOW:
  case ARROW:   case ARROW:
Line 843
 
Line 842
  case SKILL_TOOL:   case SKILL_TOOL:
      break;  /* We have more information to do below this switch */       break;  /* We have more information to do below this switch */
   
    case POWER_CRYSTAL:
        if (op->stats.maxsp>1000){ /*higher capacity crystals*/
            i = (op->stats.maxsp%100)/10;
            if (i)
                snprintf(buf,MAX_BUF,"(capacity %d.%dk). It is ",op->stats.maxsp/100,i);
                   else
                snprintf(buf,MAX_BUF,"(capacity %dk). It is ",op->stats.maxsp/100);
        }else
            snprintf(buf,MAX_BUF,"(capacity %d). It is ",op->stats.maxsp);
        strcat(retbuf,buf);
        i = (op->stats.sp*10)/op->stats.maxsp;
        if (op->stats.sp==0)
            strcat(retbuf,"empty.");
        else if (i==0)
            strcat(retbuf,"almost empty.");
        else if (i<3)
            strcat(retbuf,"partially filled.");
        else if (i<6)
            strcat(retbuf,"half full.");
        else if (i<9)
            strcat(retbuf,"well charged.");
        else if (op->stats.sp == op->stats.maxsp)
            strcat(retbuf,"fully charged.");
        else
            strcat(retbuf,"almost full.");
        break;
  case FOOD:   case FOOD:
  case FLESH:   case FLESH:
  case DRINK:   case DRINK:


Legend:
line(s) removed in v.1.49 
line(s) changed
 line(s) added in v.1.50

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