eating amulet of unchanging redux

To keep this from growing beyond this targeted change, make eating an
amulet of unchanging "un"change you, unless you're also wearing one.
This commit is contained in:
cohrs
2003-10-15 20:07:14 +00:00
parent b964ae9712
commit f86341a390
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ be more consistent with sounds when dropping into water
surface() returns "bottom" when Underwater surface() returns "bottom" when Underwater
bill for all discarded, opened tins bill for all discarded, opened tins
monsters that cannot pick things up cannot throw things either monsters that cannot pick things up cannot throw things either
eating an amulet of unchanging removes intrinsic polymorph eating an amulet of unchanging un-changes you
Vlad won't waste time trying to use wand of digging in his own tower Vlad won't waste time trying to use wand of digging in his own tower
non-weapon iron objects should rust when dipped in fountains since non-weapon iron objects should rust when dipped in fountains since
iron weapons rust iron weapons rust
+4 -3
View File
@@ -1543,10 +1543,11 @@ struct obj *otmp;
context.botl = 1; context.botl = 1;
break; break;
case AMULET_OF_UNCHANGING: case AMULET_OF_UNCHANGING:
/* remove intrinsic polymorph only */ /* un-change: it's a pun */
if (HPolymorph & INTRINSIC) { if (!Unchanging && Upolyd) {
HPolymorph &= ~INTRINSIC;
accessory_has_effect(otmp); accessory_has_effect(otmp);
makeknown(typ);
rehumanize();
} }
break; break;
case AMULET_OF_STRANGULATION: /* bad idea! */ case AMULET_OF_STRANGULATION: /* bad idea! */