version 1.64 | | version 1.65 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.64 2006/02/09 00:48:36 akirschbaum Exp $"; | | * "$Id: treasure.c,v 1.65 2006/04/06 21:18:34 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (op->stats.sp && !op->randomitems) { | | if (op->stats.sp && !op->randomitems) { |
object *tmp; | | object *tmp; |
| | |
tmp = get_archetype(spell_mapping[op->stats.sp]); | | tmp = create_archetype(spell_mapping[op->stats.sp]); |
insert_ob_in_ob(tmp, op); | | insert_ob_in_ob(tmp, op); |
op->stats.sp=0; | | op->stats.sp=0; |
} | | } |
| | |
if (op->stats.sp && !op->randomitems) { | | if (op->stats.sp && !op->randomitems) { |
object *tmp; | | object *tmp; |
| | |
tmp = get_archetype(spell_mapping[op->stats.sp]); | | tmp = create_archetype(spell_mapping[op->stats.sp]); |
insert_ob_in_ob(tmp, op); | | insert_ob_in_ob(tmp, op); |
op->stats.sp=0; | | op->stats.sp=0; |
} | | } |