new command '`' to show discoveries for one class (trunk only)

Use the grave accent (back tick) character as the keystroke for a
new command which prompts for an object class and then shows a subset of
the discovered objects list covering just the selected class.  Similar
to the 'I' variant of 'i' for viewing inventory, and mainly useful once
the '\' discoveries list has grown long.
This commit is contained in:
nethack.rankin
2011-09-15 04:16:29 +00:00
parent b42cc3bdb0
commit 16e81690e3
11 changed files with 195 additions and 9 deletions

View File

@@ -78,6 +78,7 @@ extern int NDECL(doopen); /**/
extern int NDECL(doclose); /**/
extern int NDECL(dosh); /**/
extern int NDECL(dodiscovered); /**/
extern int NDECL(doclassdisco); /**/
extern int NDECL(doset); /**/
extern int NDECL(dotogglepickup); /**/
extern int NDECL(dowhatis); /**/
@@ -2261,6 +2262,7 @@ static const struct func_tab cmdlist[] = {
{';', TRUE, doquickwhatis},
{'^', TRUE, doidtrap},
{'\\', TRUE, dodiscovered}, /* Robert Viduya */
{'`', TRUE, doclassdisco},
{'@', TRUE, dotogglepickup},
{M('2'), FALSE, dotwoweapon},
{WEAPON_SYM, TRUE, doprwep},