version 1.77 | | version 1.78 |
---|
| | |
%{ | | %{ |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: loader.l,v 1.77 2006/03/18 16:23:40 ryo_saeba Exp $"; | | * "$Id: loader.l,v 1.78 2006/04/06 21:18:34 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* Fireall is bizarre in that spell type was stored in dam. Rest are 'normal' | | /* Fireall is bizarre in that spell type was stored in dam. Rest are 'normal' |
* in that spell was stored in sp. | | * in that spell was stored in sp. |
*/ | | */ |
tmp = get_archetype(spell_mapping[op->type == FIREWALL?op->stats.dam:op->stats.sp]); | | tmp = create_archetype(spell_mapping[op->type == FIREWALL?op->stats.dam:op->stats.sp]); |
insert_ob_in_ob(tmp, op); | | insert_ob_in_ob(tmp, op); |
op->randomitems = NULL; /* So another spell isn't created for this object */ | | op->randomitems = NULL; /* So another spell isn't created for this object */ |
} | | } |
| | |
if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) { | | if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) { |
object *tmp; | | object *tmp; |
| | |
tmp = get_archetype_by_object_name(op->slaying); | | tmp = create_archetype_by_object_name(op->slaying); |
insert_ob_in_ob(tmp, op); | | insert_ob_in_ob(tmp, op); |
op->randomitems = NULL; /* So another spell isn't created for this object */ | | op->randomitems = NULL; /* So another spell isn't created for this object */ |
/* without this, value is all screwed up */ | | /* without this, value is all screwed up */ |