killer messages

Incorporate various killer message grammar fixes suggested by <Someone>.
Mostly these deal with using the proper killer_format and prefix ("the" or
no "the") for unique and type_is_pname monsters, or death to to eating
their corpses.
One case is handled by a general fix to name_to_mon to allow it to deal
with "Croesus' corpse".
The pre-3.4.1 topten behavior for "starved to death" messages is also restored.
This commit is contained in:
cohrs
2003-09-25 16:56:56 +00:00
parent db011864c0
commit 4375fc7846
6 changed files with 26 additions and 16 deletions

View File

@@ -1151,8 +1151,17 @@ dopois:
&& !(poly_when_stoned(youmonst.data) &&
polymon(PM_STONE_GOLEM))) {
Stoned = 5;
killer_format = KILLED_BY_AN;
delayed_killer = mtmp->data->mname;
if (mtmp->data->geno & G_UNIQ) {
if (!type_is_pname(mtmp->data)) {
static char buf[BUFSZ];
/* "the" buffer may be reallocated */
Strcpy(buf, the(delayed_killer));
delayed_killer = buf;
}
killer_format = KILLED_BY;
} else killer_format = KILLED_BY_AN;
return(1);
/* You("turn to stone..."); */
/* done_in_by(mtmp); */