diff --git a/doc/fixes36.3 b/doc/fixes36.3 index a31768dc1..1c28ed086 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.36 $ $NHDT-Date: 1559675614 2019/06/04 19:13:34 $ +$NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.37 $ $NHDT-Date: 1559679496 2019/06/04 20:18:16 $ This fixes36.3 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.2 in May 2019. Please note, however, @@ -48,6 +48,8 @@ various cases where objects had their bless/curse state become known weren't curse but there were lots of other situations with the same issue) similar perm_invent issue when lock state known and/or contents known become set for carried container +blessed scroll of remove curse read while confused might be shown to operate + on itself by perm_invent after player is told that it has disappeared Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository diff --git a/src/read.c b/src/read.c index 562b52bf1..063f73c13 100644 --- a/src/read.c +++ b/src/read.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 read.c $NHDT-Date: 1546465285 2019/01/02 21:41:25 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.164 $ */ +/* NetHack 3.6 read.c $NHDT-Date: 1559679496 2019/06/04 20:18:16 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.165 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1285,6 +1285,10 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */ /* gold isn't subject to cursing and blessing */ if (obj->oclass == COIN_CLASS) continue; + /* hide current scroll from itself so that perm_invent won't + show known blessed scroll losing bknown when confused */ + if (obj == sobj && obj->quan == 1L) + continue; wornmask = (obj->owornmask & ~(W_BALL | W_ART | W_ARTI)); if (wornmask && !sblessed) { /* handle a couple of special cases; we don't