From df7a5c3f968128126a69c320d1304cfd554e19e4 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Mon, 4 Mar 2002 04:39:41 +0000 Subject: [PATCH] Prevent fake amulet from being contained too Most NetHack players have picked up on the fact that you can easily distinguish between a fake amulet and the real thing simply by trying to put it into a container. That's too easy. The message was adjusted too, to make it seem less like the objects have their own special will to resist, something that a hunk of plastic is unlikely to have. Devteam: message has been modified from what was previously circulated. --- src/pickup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pickup.c b/src/pickup.c index f524750db..febf2a63e 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -1687,14 +1687,17 @@ register struct obj *obj; pline_The("stone%s won't leave your person.", plur(obj->quan)); return 0; } else if (obj->otyp == AMULET_OF_YENDOR || + obj->otyp == FAKE_AMULET_OF_YENDOR || obj->otyp == CANDELABRUM_OF_INVOCATION || obj->otyp == BELL_OF_OPENING || obj->otyp == SPE_BOOK_OF_THE_DEAD) { /* Prohibit Amulets in containers; if you allow it, monsters can't * steal them. It also becomes a pain to check to see if someone * has the Amulet. Ditto for the Candelabrum, the Bell and the Book. + * The fake amulet too because otherwise it's too easy to distinguish. */ - pline("%s cannot be confined in such trappings.", The(xname(obj))); + pline("%s is enchanted to resist confinement.", + The(xname(obj))); return 0; } else if (obj->otyp == LEASH && obj->leashmon != 0) { pline("%s attached to your pet.", Tobjnam(obj, "are"));