Add unique Rider revival messages

This comes from xNetHack by copperwater <aosdict@gmail.com>
with some changes to the code, although original change is from
SpliceHack.
This commit is contained in:
Pasi Kallinen
2022-02-06 19:58:58 +02:00
parent 82d404ec51
commit 3315a5735e
2 changed files with 14 additions and 3 deletions

View File

@@ -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

View File

@@ -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 */