From 186a2ccbcf29a33749d3a1646292475d5f0f50f6 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Wed, 3 Jul 2002 00:11:22 +0000 Subject: [PATCH] B01001 reported this bug (B01001): "Tower of flame" as cause of death _still_ lacks "killed by" prefix. --- src/explode.c | 4 ++++ src/topten.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/explode.c b/src/explode.c index b755e1f9c..543b199d0 100644 --- a/src/explode.c +++ b/src/explode.c @@ -347,6 +347,10 @@ int expltype; killer_format = NO_KILLER_PREFIX; Sprintf(killer_buf, "caught %sself in %s own %s", uhim(), uhis(), str); + } else if (!strncmpi(str,"tower of flame", 8) || + !strncmpi(str,"fireball", 8)) { + killer_format = KILLED_BY_AN; + Strcpy(killer_buf, str); } else { killer_format = KILLED_BY; Strcpy(killer_buf, str); diff --git a/src/topten.c b/src/topten.c index 03fbac489..ec2253a80 100644 --- a/src/topten.c +++ b/src/topten.c @@ -78,7 +78,7 @@ STATIC_DCL void FDECL(nsb_unmung_line,(char*)); /* must fit with end.c; used in rip.c */ NEARDATA const char *killed_by_prefix[] = { "killed by ", "choked on ", "poisoned by ", "", "drowned in ", - "", "dissolved in ", "crushed to death by ", "petrified by ", + "burned by ", "dissolved in ", "crushed to death by ", "petrified by ", "turned to slime by ", "killed by ", "", "", "", "", "" };