From: Pasi Kallinen Date: Sun, 6 Feb 2022 17:58:58 +0000 (+0200) Subject: Add unique Rider revival messages X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3315a5735e50e4062001cee5ef9c2bf473548229;p=nethack Add unique Rider revival messages This comes from xNetHack by copperwater with some changes to the code, although original change is from SpliceHack. --- diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 6946a6d8b..9ae285763 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -772,6 +772,7 @@ in flush_screen, reorder the code slightly to complete the bot() and on the hero magic traps can toggle intrinsic invisibility Death attacking a monster does drain life attack +add unique Rider revival messages Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/do.c b/src/do.c index 562d97a40..b6e86c4f1 100644 --- a/src/do.c +++ b/src/do.c @@ -1923,10 +1923,20 @@ revive_corpse(struct obj *corpse) break; case OBJ_FLOOR: - if (cansee(mtmp->mx, mtmp->my)) - pline("%s rises from the dead!", + if (cansee(mtmp->mx, mtmp->my)) { + const char *effect = ""; + + if (mtmp->data == &mons[PM_DEATH]) + effect = " in a whirl of spectral skulls"; + else if (mtmp->data == &mons[PM_PESTILENCE]) + effect = " in a churning pillar of flies"; + else if (mtmp->data == &mons[PM_FAMINE]) + effect = " in a ring of withered crops"; + + pline("%s rises from the dead%s!", chewed ? Adjmonnam(mtmp, "bite-covered") - : Monnam(mtmp)); + : Monnam(mtmp), effect); + } break; case OBJ_MINVENT: /* probably a nymph's */