]> granicus.if.org Git - nethack/commitdiff
pre-known Fake Amulet of Yendor
authorcohrs <cohrs>
Tue, 16 Apr 2002 04:57:51 +0000 (04:57 +0000)
committercohrs <cohrs>
Tue, 16 Apr 2002 04:57:51 +0000 (04:57 +0000)
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
src/objnam.c

index bddd8c661d0770622a8747789c14fd04ae278bc0..d28dd02c859daf5f34db1bb969d51929e7455aaa 100644 (file)
@@ -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
index 03dc8cc9a4d1f487a435d7b90259a959ef5754ef..cc43f160595f3e8c9a8a321caadb0c7d088c9b9d 100644 (file)
@@ -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))