From 2490b10b6556f65ead63401099fc31a3f8f1aff2 Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 16 Apr 2002 04:57:51 +0000 Subject: [PATCH] pre-known Fake Amulet of Yendor the change to xname to lazily reset known on objects after DRIN attacks, need not change the FAoY. the_unique_obj already handles this --- doc/fixes34.1 | 1 + src/objnam.c | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index bddd8c661..d28dd02c8 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -78,6 +78,7 @@ monsters with WAITFORU strategy should act if successfully attacked by don't summon kops if credit covers cost of unpaid goods taken out of shop update swallowed display immediately if an engulfing monster polymorphs into another engulfing monster +undo xname FAKE_AMULET_OF_YENDOR AD_DRIN check, the_unique_obj checks this case Platform- and/or Interface-Specific Fixes diff --git a/src/objnam.c b/src/objnam.c index 03dc8cc9a..cc43f1605 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -231,12 +231,11 @@ register struct obj *obj; buf[0] = '\0'; /* * clean up known when it's tied to oc_name_known, eg after AD_DRIN - * This is only required for unique objects and the Fake AoY since the - * article printed for the object is tied to the combination of the two + * This is only required for unique objects since the article + * printed for the object is tied to the combination of the two * and printing the wrong article gives away information. */ - if (!nn && ocl->oc_uses_known && - (ocl->oc_unique || typ == FAKE_AMULET_OF_YENDOR)) obj->known = 0; + if (!nn && ocl->oc_uses_known && ocl->oc_unique) obj->known = 0; if (!Blind) obj->dknown = TRUE; if (Role_if(PM_PRIEST)) obj->bknown = TRUE; if (obj_is_pname(obj))