version 1.34 | | version 1.35 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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"); |
| | |
| | |
*/ | | */ |
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: |
| | |
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); |
| | |
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); |
} | | } |