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
+3 -1
View File
@@ -5,7 +5,7 @@
.ds vr "NetHack 3.5
.ds f0 "\*(vr
.ds f1
.ds f2 "April 17, 2011
.ds f2 "September 14, 2011
.\" labeled paragraph start (should be part of tmac.n, but I don't want to
.\" make changes to that file)
.\" .PS word
@@ -767,6 +767,8 @@ be added to the end of the list rather than be inserted into the sorted
ordering.)
.lp "\e
Show what types of objects have been discovered.
.lp `
Show discovered types for one class of objects.
.lp !
Escape to a shell.
.lp #
+6 -3
View File
@@ -33,7 +33,7 @@
\begin{document}
%
% input file: guidebook.mn
% $Revision: 1.115 $ $Date: 2011/04/24 21:12:06 $
% $Revision: 1.116 $ $Date: 2011/04/25 03:29:41 $
%
%.ds h0 "
%.ds h1 %.ds h2 \%
@@ -46,7 +46,7 @@
%.au
\author{Eric S. Raymond\\
(Extensively edited and expanded for 3.5)}
\date{April 17, 2011}
\date{September 14, 2011}
\maketitle
@@ -491,7 +491,7 @@ An amulet or a spider web.
\item[\tb{*}]
A gem or rock (possibly valuable, possibly worthless).
%.lp
\item[\tb{`}]
\item[\tb{\`}]
A boulder or statue.
%.lp
\item[\tb{0}]
@@ -957,6 +957,9 @@ ordering.)
\item[\tb{$\backslash$}]
Show what types of objects have been discovered.
%.lp
\item[\tb{\`}]
Show discovered types for one class of objects.
%.lp
\item[\tb{!}]
Escape to a shell.
%.lp
+1
View File
@@ -522,6 +522,7 @@ adopt/adapt/improve the Paranoid_Quit patch; default is paranoid_confirm:pray
flexibility for specifying "detect <foo>" vs "<foo> detection" when wishing
when a sokoban puzzle has been completed (last pit or hole filled in),
stop assessing luck penalties and lift most movement restrictions
'`' command to show discoveries for one class of objects
Platform- and/or Interface-Specific New Features