From b43b3f617c0a4c62f6882a81a6e45141cf33308a Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 1 Feb 2019 18:40:45 -0800 Subject: [PATCH] object classes for wizard mode identify When ^I was changed to allow picking more than one item to make its temporary identification become persistent, group accelators got left out. So to pick all potions, you needed to select them letter by letter (or via '.' to select everything, then deselect non-potions letter by letter). Now you can use '!' to select all potions. --- doc/fixes36.2 | 3 ++- src/invent.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/fixes36.2 b/doc/fixes36.2 index 33fca088c..8bca59c53 100644 --- a/doc/fixes36.2 +++ b/doc/fixes36.2 @@ -1,4 +1,4 @@ -$NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.243 $ $NHDT-Date: 1549074254 2019/02/02 02:24:14 $ +$NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.244 $ $NHDT-Date: 1549075239 2019/02/02 02:40:39 $ This fixes36.2 file is here to capture information about updates in the 3.6.x lineage following the release of 3.6.1 in April 2018. Please note, however, @@ -372,6 +372,7 @@ orctown: orcs beyond the mines were being given any left-over booty and named as part of the same marauding gang operating within the mines make long extended commands list be more navigable simplify #wizidentify; don't rely on having bold menu entries +add object class group accelerators to #wizidentify ensure tmp_at() structures are initialized for all code paths when swallowed trapped-vs-levitation/flying change broke Sting releasing hero from web life-saving while poly'd and Unchanging wasn't restoring u.mh (HP as monster) diff --git a/src/invent.c b/src/invent.c index 01250e1af..3d502673f 100644 --- a/src/invent.c +++ b/src/invent.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 invent.c $NHDT-Date: 1547025166 2019/01/09 09:12:46 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.250 $ */ +/* NetHack 3.6 invent.c $NHDT-Date: 1549075239 2019/02/02 02:40:39 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.252 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Derek S. Ray, 2015. */ /* NetHack may be freely redistributed. See license for details. */ @@ -2692,7 +2692,8 @@ long *out_cnt; else any.a_char = ilet; add_menu(win, obj_to_glyph(otmp, rn2_on_display_rng), &any, ilet, - 0, ATR_NONE, doname(otmp), MENU_UNSELECTED); + wizid ? def_oc_syms[(int) otmp->oclass].sym : 0, + ATR_NONE, doname(otmp), MENU_UNSELECTED); } } if (flags.sortpack) { -- 2.40.0