version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.19 2005/05/07 11:51:20 tchize Exp $"; | | * "$Id: spell_attack.c,v 1.20 2005/07/19 20:59:34 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* Destruction | | * Destruction |
****************************************************************************/ | | ****************************************************************************/ |
/* make_object_glow() - currently only makes living objects glow. | | /* make_object_glow() - currently only makes living objects glow. |
* we do this by creating a "force" and inserting it in the | | * we do this by creating a force and inserting it in the |
* object. if time is 0, the object glows permanently. To truely | | * object. if time is 0, the object glows permanently. To truely |
* make this work for non-living objects, we would have to | | * make this work for non-living objects, we would have to |
* give them the capability to have an inventory. b.t. | | * give them the capability to have an inventory. b.t. |
| | |
if(op->path_denied&PATH_LIGHT) | | if(op->path_denied&PATH_LIGHT) |
return 0; | | return 0; |
| | |
tmp=get_archetype("force"); | | tmp=get_archetype(FORCE_NAME); |
tmp->speed = 0.01; | | tmp->speed = 0.01; |
tmp->stats.food = time; | | tmp->stats.food = time; |
SET_FLAG(tmp, FLAG_IS_USED_UP); | | SET_FLAG(tmp, FLAG_IS_USED_UP); |
| | |
} | | } |
| | |
if(force==NULL) { | | if(force==NULL) { |
force=get_archetype("force"); | | force=get_archetype(FORCE_NAME); |
force->subtype = FORCE_CHANGE_ABILITY; | | force->subtype = FORCE_CHANGE_ABILITY; |
free_string(force->name); | | free_string(force->name); |
if (spell_ob->race) | | if (spell_ob->race) |
| | |
new_draw_info_format(NDI_UNIQUE, 0, op, "You inflict %s on %s!",disease->name,walk->name); | | new_draw_info_format(NDI_UNIQUE, 0, op, "You inflict %s on %s!",disease->name,walk->name); |
| | |
free_object(disease); /* don't need this one anymore */ | | free_object(disease); /* don't need this one anymore */ |
flash=get_archetype("detect_magic"); | | flash=get_archetype(ARCH_DETECT_MAGIC); |
flash->x = x; | | flash->x = x; |
flash->y = y; | | flash->y = y; |
flash->map = walk->map; | | flash->map = walk->map; |