]> granicus.if.org Git - nethack/commitdiff
still more polyself fallout (trunk only)
authornethack.rankin <nethack.rankin>
Mon, 28 Feb 2011 10:32:55 +0000 (10:32 +0000)
committernethack.rankin <nethack.rankin>
Mon, 28 Feb 2011 10:32:55 +0000 (10:32 +0000)
     Also noticed while testing polyself changes, a few polymorph related
items weren't being listed as reasons for having some polymorph related
intrinsics during wizard mode enlightenment (a post-3.4.3 feature).
There may be other intrinsics conferred by items where you aren't told
about the item being responsible; I didn't look around for them, just
noticed these three:  Unchanging (via amulet), Polymorph (via ring), and
Protection from Shape Changers (also via ring).

src/cmd.c

index 9dd418b82f30f86fb2527e20afdd09fb402acba7..daf019dcf2189dcae90f91f110822d55a3aae169 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -1785,8 +1785,9 @@ int final;
        if (Half_physical_damage) enlght_halfdmg(HALF_PHDAM, final);
        if (Half_spell_damage) enlght_halfdmg(HALF_SPDAM, final);
        if (Protection_from_shape_changers)
-               you_are("protected from shape changers","");
-       if (Polymorph) you_are("polymorphing","");
+               you_are("protected from shape changers",
+                       from_what(PROT_FROM_SHAPE_CHANGERS));
+       if (Polymorph) you_are("polymorphing", from_what(POLYMORPH));
        if (Polymorph_control)
                you_have("polymorph control",from_what(POLYMORPH_CONTROL));
        if (u.ulycn >= LOW_PM) {
@@ -1801,7 +1802,8 @@ int final;
 #endif
            you_are(buf,"");
        }
-       if (Unchanging) you_can("not change from your current form","");
+       if (Unchanging) you_can("not change from your current form",
+                               from_what(UNCHANGING));
        if (Hate_silver) you_are("harmed by silver","");
        if (Fast) you_are(Very_fast ? "very fast" : "fast",from_what(FAST));
        if (Reflecting) you_have("reflection",from_what(REFLECTING));