version 1.14 | | version 1.15 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.14 2001/04/23 19:59:41 mardahl Exp $"; | | * "$Id: rune.c,v 1.15 2001/04/24 04:51:00 mardahl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
level=0; | | level=0; |
tmp=get_archetype("rune_mark"); /* this is a rune of marking */ | | tmp=get_archetype("rune_mark"); /* this is a rune of marking */ |
at=NULL; | | at=NULL; |
tmp->msg = add_string((runename?runename:"There is no message")); | | tmp->msg = add_string((runename?runename:"There is no message\n")); |
} | | } |
if(at) tmp=get_archetype(runename); | | if(at) tmp=get_archetype(runename); |
tmp->stats.Cha = op->level/2; /* the invisibility parameter */ | | tmp->stats.Cha = op->level/2; /* the invisibility parameter */ |
| | |
tmp->map = op->map; | | tmp->map = op->map; |
tmp->direction=dir; /* where any spell will go upon detonation */ | | tmp->direction=dir; /* where any spell will go upon detonation */ |
tmp->level=SK_level(op); /* what level to cast the spell at */ | | tmp->level=SK_level(op); /* what level to cast the spell at */ |
/*if(inspell||tmp->stats.dam) set_owner(tmp,op);*/ /* runes without need no owner */ | | if(inspell||tmp->stats.dam) set_owner(tmp,op); /* runes without need no owner */ |
set_owner(tmp,op); | | |
insert_ob_in_map(tmp,op->map,op); | | insert_ob_in_map(tmp,op->map,op); |
return 1; | | return 1; |
| | |