From: cohrs Date: Sat, 11 Oct 2003 18:54:48 +0000 (+0000) Subject: eating an amulet of unchanging X-Git-Tag: MOVE2GIT~1719 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=701054d01266bf5ceae4a287b043636ef1a4eaa3;p=nethack eating an amulet of unchanging Prompted by a suggestion on the newsgroup and from , allow eating an amulet of unchanging to remove intrinsic polymorph. --- diff --git a/doc/fixes34.3 b/doc/fixes34.3 index af4b54a28..8fc0a33b0 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -46,6 +46,7 @@ be more consistent with sounds when dropping into water surface() returns "bottom" when Underwater bill for all discarded, opened tins monsters that cannot pick things up cannot throw things either +eating an amulet of unchanging removes intrinsic polymorph Platform- and/or Interface-Specific Fixes diff --git a/src/eat.c b/src/eat.c index e597f847a..243144344 100644 --- a/src/eat.c +++ b/src/eat.c @@ -1542,6 +1542,13 @@ struct obj *otmp; flags.female ? "feminine" : "masculine"); context.botl = 1; break; + case AMULET_OF_UNCHANGING: + /* remove intrinsic polymorph only */ + if (HPolymorph & INTRINSIC) { + HPolymorph &= ~INTRINSIC; + accessory_has_effect(otmp); + } + break; case AMULET_OF_STRANGULATION: /* bad idea! */ /* no message--this gives no permanent effect */ choke(otmp); @@ -1552,7 +1559,6 @@ struct obj *otmp; HSleeping = FROMOUTSIDE | rnd(100); break; case RIN_SUSTAIN_ABILITY: - case AMULET_OF_UNCHANGING: case AMULET_OF_LIFE_SAVING: case AMULET_OF_REFLECTION: /* nice try */ /* can't eat Amulet of Yendor or fakes,