version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.9 2000/08/07 05:16:34 cvs Exp $"; | | * "$Id: item.c,v 1.10 2000/10/18 20:00:39 peterm Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
switch(op->type) { | | switch(op->type) { |
| | case SPELLBOOK: |
| | if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { |
| | if(!op->title) { |
| | safe_strcat(buf," of ", &len, HUGE_BUF); |
| | if(op->slaying) safe_strcat(buf,op->slaying, &len, HUGE_BUF); |
| | else |
| | safe_strcat(buf,spells[op->stats.sp].name, &len, HUGE_BUF); |
| | if(op->type != SPELLBOOK) { |
| | sprintf(buf2, " (lvl %d)", op->level); |
| | safe_strcat(buf, buf2, &len, HUGE_BUF); |
| | } |
| | } |
| | } |
| | |
| | break; |
case SCROLL: | | case SCROLL: |
case WAND: | | case WAND: |
case SPELLBOOK: | | |
case ROD: | | case ROD: |
if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { | | if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { |
if(!op->title) { | | if(!op->title) { |
| | |
} | | } |
| | |
switch(op->type) { | | switch(op->type) { |
| | case SPELLBOOK: |
| | if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { |
| | if(!op->title) { |
| | strcat(buf," of "); |
| | if(op->slaying) strcat(buf,op->slaying); |
| | else |
| | strcat(buf,spells[op->stats.sp].name); |
| | if(op->type != SPELLBOOK) |
| | sprintf(buf+strlen(buf), " (lvl %d)", op->level); |
| | } |
| | } |
| | break; |
case SCROLL: | | case SCROLL: |
case WAND: | | case WAND: |
case SPELLBOOK: | | |
case ROD: | | case ROD: |
if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { | | if (QUERY_FLAG(op,FLAG_IDENTIFIED)||QUERY_FLAG(op,FLAG_BEEN_APPLIED)) { |
if(!op->title) { | | if(!op->title) { |