-NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.353 $ $NHDT-Date: 1605316497 2020/11/14 01:14:57 $
+NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.354 $ $NHDT-Date: 1605578879 2020/11/17 02:07:59 $
General Fixes and Modified Features
-----------------------------------
one-handed weapon and also to a shield
if a monster threw a cocktrice egg at the hero but hit and petrified another
monster, the hero would get credit/blame for killing it
+update persistent inventory when putting on a helmet causes it to auto-curse
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
-/* NetHack 3.7 do_wear.c $NHDT-Date: 1598958650 2020/09/01 11:10:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.135 $ */
+/* NetHack 3.7 do_wear.c $NHDT-Date: 1605578866 2020/11/17 02:07:46 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.136 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
pline("%s %s for a moment.", Tobjnam(uarmh, "glow"),
hcolor(NH_BLACK));
curse(uarmh);
+ /* curse() doesn't touch bknown so doesn't update persistent
+ inventory; do so now [set_bknown() calls update_inventory()] */
+ if (Blind)
+ set_bknown(uarmh, 0); /* lose bknown if previously set */
+ else if (Role_if(PM_PRIEST))
+ set_bknown(uarmh, 1); /* (bknown should already be set) */
+ else if (uarmh->bknown)
+ update_inventory(); /* keep bknown as-is; display the curse */
}
g.context.botl = 1; /* reveal new alignment or INT & WIS */
if (Hallucination) {