version 1.65 | | version 1.66 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.65 2006/04/06 21:18:34 tchize Exp $"; | | * "$Id: treasure.c,v 1.66 2006/05/21 12:50:17 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* it should have due to the second artifact-template. | | * it should have due to the second artifact-template. |
*/ | | */ |
| | |
void give_artifact_abilities(object *op, object *artifct) { | | void give_artifact_abilities(object *op, object *artifact) { |
char new_name[MAX_BUF]; | | char new_name[MAX_BUF]; |
| | |
sprintf(new_name, "of %s", artifct->name); | | sprintf(new_name, "of %s", artifact->name); |
if (op->title) | | if (op->title) |
free_string(op->title); | | free_string(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, artifact); /* Give out the bonuses */ |
| | |
#if 0 /* 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... */ |
{ | | { |