version 1.82 | | version 1.83 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.82 2002/05/19 03:55:48 mwedel Exp $"; | | * "$Id: player.c,v 1.83 2002/06/07 07:00:45 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
tmp=arch_to_object(find_archetype("gravestone")); | | tmp=arch_to_object(find_archetype("gravestone")); |
sprintf(buf,"%s's gravestone",op->name); | | sprintf(buf,"%s's gravestone",op->name); |
tmp->name=add_string(buf); | | FREE_AND_COPY(tmp->name, buf); |
| | FREE_AND_COPY(tmp->name_pl, buf); |
sprintf(buf,"RIP\nHere rests the hero %s the %s,\n" | | sprintf(buf,"RIP\nHere rests the hero %s the %s,\n" |
"who was killed\n" | | "who was killed\n" |
"by %s.\n", | | "by %s.\n", |
| | |
#ifdef NOT_PERMADEATH | | #ifdef NOT_PERMADEATH |
tmp=arch_to_object(find_archetype("gravestone")); | | tmp=arch_to_object(find_archetype("gravestone")); |
sprintf(buf,"%s's gravestone",op->name); | | sprintf(buf,"%s's gravestone",op->name); |
if (tmp->name) | | FREE_AND_COPY(tmp->name, buf); |
free_string (tmp->name); | | FREE_AND_COPY(tmp->name_pl, buf); |
tmp->name=add_string(buf); | | |
sprintf(buf,"RIP\nHere rests the hero %s the %s,\nwho was killed by %s.\n", | | sprintf(buf,"RIP\nHere rests the hero %s the %s,\nwho was killed by %s.\n", |
op->name, op->contr->title, op->contr->killer); | | op->name, op->contr->title, op->contr->killer); |
if (tmp->msg) | | if (tmp->msg) |
| | |
/* peterm: added to create a corpse at deathsite. */ | | /* peterm: added to create a corpse at deathsite. */ |
tmp=arch_to_object(find_archetype("corpse_pl")); | | tmp=arch_to_object(find_archetype("corpse_pl")); |
sprintf(buf,"%s", op->name); | | sprintf(buf,"%s", op->name); |
if (tmp->name) | | FREE_AND_COPY(tmp->name, buf); |
free_string (tmp->name); | | FREE_AND_COPY(tmp->name_pl, buf); |
tmp->name=add_string(buf); | | |
tmp->level=op->level; | | tmp->level=op->level; |
tmp->x=x;tmp->y=y; | | tmp->x=x;tmp->y=y; |
if (tmp->msg) | | if (tmp->msg) |