]> granicus.if.org Git - nethack/commitdiff
freezing sphere and amulet of lifesaving
authornethack.allison <nethack.allison>
Tue, 4 Feb 2003 00:56:03 +0000 (00:56 +0000)
committernethack.allison <nethack.allison>
Tue, 4 Feb 2003 00:56:03 +0000 (00:56 +0000)
<Someone> wrote:
> "The freezing sphere explodes!  You seem unaffected by it.  But wait...
>   The freezing sphere's medallion begins to glow!
>   The freezing sphere looks much better!
>   The medallion crumbles to dust!"
> How can sphere wear a medaillon?
> How can an exploded creature start to look better, if it leaves no corpse?

This addresses the part about looking better, it does not
address spheres wearing medallions (which is not a bug
in my opinion, but other opinions may differ)

src/mon.c

index a2f34dcf7a4f9fbcc426c275cf14f813079289c4..7eb64fd319cba639fa0d8d106076639de3938e6e 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -1336,7 +1336,11 @@ struct monst *mtmp;
                        pline("%s medallion begins to glow!",
                                s_suffix(Monnam(mtmp)));
                        makeknown(AMULET_OF_LIFE_SAVING);
-                       pline("%s looks much better!", Monnam(mtmp));
+                       if (attacktype(mtmp->data, AT_EXPL)
+                           || attacktype(mtmp->data, AT_BOOM))
+                               pline("%s reconstitutes!", Monnam(mtmp));
+                       else
+                               pline("%s looks much better!", Monnam(mtmp));
                        pline_The("medallion crumbles to dust!");
                }
                m_useup(mtmp, lifesave);