version 1.45 | | version 1.46 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.45 2005/11/01 10:08:17 akirschbaum Exp $"; | | * "$Id: rune.c,v 1.46 2006/04/06 21:18:36 tchize Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (rune_spell->type == RUNE) { | | if (rune_spell->type == RUNE) { |
rune = rune_spell; | | rune = rune_spell; |
} else { | | } else { |
rune = get_archetype(GENERIC_RUNE); | | rune = create_archetype(GENERIC_RUNE); |
sprintf(buf,"You set off a rune of %s\n",rune_spell->name); | | sprintf(buf,"You set off a rune of %s\n",rune_spell->name); |
rune->msg=add_string(buf); | | rune->msg=add_string(buf); |
tmp = get_object(); | | tmp = get_object(); |
| | |
object *tmp2; | | object *tmp2; |
| | |
if(where==NULL) return 0; | | if(where==NULL) return 0; |
tmp2=get_archetype("runedet"); | | tmp2=create_archetype("runedet"); |
tmp2->face=&new_faces[GET_ANIMATION(trap, 0)]; | | tmp2->face=&new_faces[GET_ANIMATION(trap, 0)]; |
tmp2->x=where->x;tmp2->y=where->y;tmp2->map=where->map; | | tmp2->x=where->x;tmp2->y=where->y;tmp2->map=where->map; |
insert_ob_in_map(tmp2,where->map,NULL,0); | | insert_ob_in_map(tmp2,where->map,NULL,0); |