]> granicus.if.org Git - nethack/commitdiff
Add unique Rider revival messages
authorPasi Kallinen <paxed@alt.org>
Sun, 6 Feb 2022 17:58:58 +0000 (19:58 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 6 Feb 2022 18:00:32 +0000 (20:00 +0200)
This comes from xNetHack by copperwater <aosdict@gmail.com>
with some changes to the code, although original change is from
SpliceHack.

doc/fixes3-7-0.txt
src/do.c

index 6946a6d8b670868f9fa0ca0e5117d7e890556a81..9ae285763e29221311917343cc8a69f3455626b5 100644 (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
index 562d97a40b615deb5d1fd36039db43546eb537cd..b6e86c4f1099748f5bb58ccf4e7e4805fc23af68 100644 (file)
--- 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 */