version 1.29 | | version 1.30 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.29 2002/11/14 01:03:59 garbled Exp $"; | | * "$Id: item.c,v 1.30 2003/01/05 23:50:10 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* also makes the code easier to read. | | * also makes the code easier to read. |
*/ | | */ |
if (!need_identify(op) || QUERY_FLAG(op, FLAG_IDENTIFIED)) identified = 1; | | if (!need_identify(op) || QUERY_FLAG(op, FLAG_IDENTIFIED)) identified = 1; |
else identified = 0; | | else { |
| | strcpy(retbuf,"(unidentified)"); |
| | identified = 0; |
| | } |
| | |
switch(op->type) { | | switch(op->type) { |
case BOW: | | case BOW: |
| | |
sprintf(buf,"(Max speed %1.2f)", ARMOUR_SPEED(op) / 10.0); | | sprintf(buf,"(Max speed %1.2f)", ARMOUR_SPEED(op) / 10.0); |
strcat(retbuf, buf); | | strcat(retbuf, buf); |
} | | } |
/* Do this in all cases - otherwise it gets confusing - does that | | if (ARMOUR_SPELLS(op)) |
* item have no penality, or is it not fully identified for example. | | |
*/ | | |
sprintf(buf,"(Spell regen penalty %d)", ARMOUR_SPELLS(op)); | | sprintf(buf,"(Spell regen penalty %d)", ARMOUR_SPELLS(op)); |
strcat(retbuf, buf); | | strcat(retbuf, buf); |
more_info=1; | | more_info=1; |