version 1.6 | | version 1.7 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.6 2000/12/27 07:53:33 cvs Exp $"; | | * "$Id: treasure.c,v 1.7 2001/01/15 22:33:32 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
| | |
void give_artifact_abilities(object *op, object *artifct) { | | void give_artifact_abilities(object *op, object *artifct) { |
char new_name[MAX_BUF], identified; | | char new_name[MAX_BUF]; |
| | |
sprintf(new_name, "of %s", artifct->name); | | sprintf(new_name, "of %s", artifct->name); |
if (op->title) | | if (op->title) |
| | |
op->title = add_string(new_name); | | op->title = add_string(new_name); |
add_abilities(op, artifct); /* Give out the bonuses */ | | add_abilities(op, artifct); /* Give out the bonuses */ |
| | |
#if 1 /* Bit verbose, but keep it here until next time I need it... */ | | #if 0 /* Bit verbose, but keep it here until next time I need it... */ |
identified = QUERY_FLAG(op, FLAG_IDENTIFIED); | | { |
| | char identified = QUERY_FLAG(op, FLAG_IDENTIFIED); |
SET_FLAG(op, FLAG_IDENTIFIED); | | SET_FLAG(op, FLAG_IDENTIFIED); |
LOG(llevDebug, "Generated artifact %s %s [%s]\n", | | LOG(llevDebug, "Generated artifact %s %s [%s]\n", |
op->name, op->title, describe_item(op)); | | op->name, op->title, describe_item(op)); |
if (!identified) | | if (!identified) |
CLEAR_FLAG(op, FLAG_IDENTIFIED); | | CLEAR_FLAG(op, FLAG_IDENTIFIED); |
| | } |
#endif | | #endif |
return; | | return; |
} | | } |