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
This commit is contained in:
cohrs
2002-04-16 04:57:51 +00:00
parent 31c824dbf3
commit 2490b10b65
2 changed files with 4 additions and 4 deletions

View 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

View 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))