version 1.69 | | version 1.70 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.69 2002/02/11 04:22:06 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.70 2002/06/07 07:00:45 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
EXIT_PATH(dummy) = add_string (exitpath); | | EXIT_PATH(dummy) = add_string (exitpath); |
EXIT_X(dummy)=exitx; | | EXIT_X(dummy)=exitx; |
EXIT_Y(dummy)=exity; | | EXIT_Y(dummy)=exity; |
free_string (dummy->name); | | FREE_AND_COPY(dummy->name, portal_name); |
dummy->name=add_string (portal_name); | | FREE_AND_COPY(dummy->name_pl, portal_name); |
dummy->msg=add_string (portal_message); | | dummy->msg=add_string (portal_message); |
CLEAR_FLAG (dummy,FLAG_WALK_ON); | | CLEAR_FLAG (dummy,FLAG_WALK_ON); |
CLEAR_FLAG (dummy,FLAG_FLY_ON); | | CLEAR_FLAG (dummy,FLAG_FLY_ON); |
| | |
} | | } |
force->slaying= add_string (PORTAL_ACTIVE_NAME); | | force->slaying= add_string (PORTAL_ACTIVE_NAME); |
force->race=add_string (op->map->path); | | force->race=add_string (op->map->path); |
force->name=add_string (portal_name); | | FREE_AND_COPY(force->name, portal_name); |
EXIT_X(force)=dummy->x; | | EXIT_X(force)=dummy->x; |
EXIT_Y(force)=dummy->y; | | EXIT_Y(force)=dummy->y; |
force->speed=0.0; | | force->speed=0.0; |
| | |
EXIT_PATH(dummy) = add_string (op->map->path); | | EXIT_PATH(dummy) = add_string (op->map->path); |
EXIT_X(dummy)=op->x; | | EXIT_X(dummy)=op->x; |
EXIT_Y(dummy)=op->y; | | EXIT_Y(dummy)=op->y; |
free_string (dummy->name); | | FREE_AND_COPY(dummy->name, portal_name); |
dummy->name=add_string (portal_name); | | FREE_AND_COPY(dummy->name_pl, portal_name); |
dummy->msg=add_string (portal_message); | | dummy->msg=add_string (portal_message); |
CLEAR_FLAG (dummy,FLAG_WALK_ON); | | CLEAR_FLAG (dummy,FLAG_WALK_ON); |
CLEAR_FLAG (dummy,FLAG_FLY_ON); | | CLEAR_FLAG (dummy,FLAG_FLY_ON); |
| | |
} | | } |
force->slaying= add_string (PORTAL_ACTIVE_NAME); | | force->slaying= add_string (PORTAL_ACTIVE_NAME); |
force->race=add_string (exitpath); | | force->race=add_string (exitpath); |
force->name=add_string (portal_name); | | FREE_AND_COPY(force->name, portal_name); |
EXIT_X(force)=dummy->x; | | EXIT_X(force)=dummy->x; |
EXIT_Y(force)=dummy->y; | | EXIT_Y(force)=dummy->y; |
force->speed=0.0; | | force->speed=0.0; |
| | |
sprintf(buf,"Arch %s of %s",head->name,god->name); | | sprintf(buf,"Arch %s of %s",head->name,god->name); |
else | | else |
sprintf(buf,"%s of %s",head->name,god->name); | | sprintf(buf,"%s of %s",head->name,god->name); |
| | FREE_AND_COPY(otmp->name, buf); |
free_string(otmp->name); | | |
otmp->name=add_string(buf); | | |
} | | } |
} | | } |
} /* if monster level is much less than character level */ | | } /* if monster level is much less than character level */ |