version 1.27 | | version 1.28 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.27 2002/09/24 06:29:31 mwedel Exp $"; | | * "$Id: item.c,v 1.28 2002/10/04 05:59:28 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
SET_FLAG(op,FLAG_KNOWN_CURSED); | | SET_FLAG(op,FLAG_KNOWN_CURSED); |
| | |
if (op->type == POTION && op->arch != (archetype *) NULL) { | | if (op->type == POTION && op->arch != (archetype *) NULL) { |
/*op->face = op->arch->clone.face; */ | | |
free_string(op->name); | | free_string(op->name); |
op->name = add_refcount(op->arch->clone.name); | | op->name = add_refcount(op->arch->clone.name); |
| | free_string(op->name_pl); |
| | op->name_pl = add_refcount(op->arch->clone.name_pl); |
} else if( op->type == SPELLBOOK && op->slaying != NULL){ | | } else if( op->type == SPELLBOOK && op->slaying != NULL){ |
if((op->stats.sp = look_up_spell_name( op->slaying )) <0 ){ | | if((op->stats.sp = look_up_spell_name( op->slaying )) <0 ){ |
char buf[256]; | | char buf[256]; |