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:
@@ -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
|
don't summon kops if credit covers cost of unpaid goods taken out of shop
|
||||||
update swallowed display immediately if an engulfing monster polymorphs
|
update swallowed display immediately if an engulfing monster polymorphs
|
||||||
into another engulfing monster
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+3
-4
@@ -231,12 +231,11 @@ register struct obj *obj;
|
|||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
/*
|
/*
|
||||||
* clean up known when it's tied to oc_name_known, eg after AD_DRIN
|
* 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
|
* This is only required for unique objects since the article
|
||||||
* article printed for the object is tied to the combination of the two
|
* printed for the object is tied to the combination of the two
|
||||||
* and printing the wrong article gives away information.
|
* and printing the wrong article gives away information.
|
||||||
*/
|
*/
|
||||||
if (!nn && ocl->oc_uses_known &&
|
if (!nn && ocl->oc_uses_known && ocl->oc_unique) obj->known = 0;
|
||||||
(ocl->oc_unique || typ == FAKE_AMULET_OF_YENDOR)) obj->known = 0;
|
|
||||||
if (!Blind) obj->dknown = TRUE;
|
if (!Blind) obj->dknown = TRUE;
|
||||||
if (Role_if(PM_PRIEST)) obj->bknown = TRUE;
|
if (Role_if(PM_PRIEST)) obj->bknown = TRUE;
|
||||||
if (obj_is_pname(obj))
|
if (obj_is_pname(obj))
|
||||||
|
|||||||
Reference in New Issue
Block a user