From: nethack.rankin Date: Mon, 28 Feb 2011 10:32:55 +0000 (+0000) Subject: still more polyself fallout (trunk only) X-Git-Tag: MOVE2GIT~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7162ed6364af5882b72592eeeaae95bc129b13aa;p=nethack still more polyself fallout (trunk only) 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). --- diff --git a/src/cmd.c b/src/cmd.c index 9dd418b82..daf019dcf 100644 --- 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));