Merge branch 'NetHack-3.6.2'
This commit is contained in:
8
doc/.gitignore
vendored
8
doc/.gitignore
vendored
@@ -1,6 +1,12 @@
|
|||||||
|
# Guidebook without a suffix is usually a copy of Guidebook.txt. The
|
||||||
|
# latter is managed by git because it is part of the source distribution.
|
||||||
|
# We don't want both copies.
|
||||||
Guidebook
|
Guidebook
|
||||||
|
# various intermediate files or generated output, not to be tracked.
|
||||||
Guidebook.aux
|
Guidebook.aux
|
||||||
|
Guidebook.dvi
|
||||||
Guidebook.log
|
Guidebook.log
|
||||||
Guidebook.pdf
|
Guidebook.pdf
|
||||||
Guidebook.synctex.gz
|
Guidebook.ps
|
||||||
|
*.synctex.*
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.\" $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.286 $ $NHDT-Date: 1540625949 2018/10/27 07:39:09 $
|
.\" $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.292 $ $NHDT-Date: 1546984605 2019/01/08 21:56:45 $
|
||||||
.\"
|
.\"
|
||||||
.\" This is an excerpt from the 'roff' man page from the 'groff' package.
|
.\" This is an excerpt from the 'roff' man page from the 'groff' package.
|
||||||
.\" NetHack's Guidebook.mn currently does *not* adhere to these guidelines.
|
.\" NetHack's Guidebook.mn currently does *not* adhere to these guidelines.
|
||||||
@@ -587,6 +587,8 @@ or (for \(lq#loot\(rq to remove a saddle),
|
|||||||
skip containers and go straight to adjacent monsters.
|
skip containers and go straight to adjacent monsters.
|
||||||
The prefix will
|
The prefix will
|
||||||
make \(lq#travel\(rq command show a menu of interesting targets in sight.
|
make \(lq#travel\(rq command show a menu of interesting targets in sight.
|
||||||
|
In debug mode (aka \(lqwizard mode\(rq), the \(oqm\(cq prefix may also be
|
||||||
|
used with the \(lq#teleport\(rq and \(lq#wizlevelport\(rq commands.
|
||||||
.lp F[yuhjklbn]
|
.lp F[yuhjklbn]
|
||||||
Prefix: fight a monster (even if you only guess one is there).
|
Prefix: fight a monster (even if you only guess one is there).
|
||||||
.lp M[yuhjklbn]
|
.lp M[yuhjklbn]
|
||||||
|
|||||||
@@ -702,6 +702,8 @@ and go straight to checking inventory,
|
|||||||
or (for ``{\tt \#loot}'' to remove a saddle),
|
or (for ``{\tt \#loot}'' to remove a saddle),
|
||||||
skip containers and go straight to adjacent monsters. The prefix will
|
skip containers and go straight to adjacent monsters. The prefix will
|
||||||
make ``{\tt \#travel}'' command show a menu of interesting targets in sight.
|
make ``{\tt \#travel}'' command show a menu of interesting targets in sight.
|
||||||
|
In debug mode (aka ``wizard mode''), the `{\tt m}' prefix may also be
|
||||||
|
used with the ``{\tt \#teleport}'' and ``{\tt \#wizlevelport}'' commands.
|
||||||
%.lp
|
%.lp
|
||||||
\item[\tb{F[yuhjklbn]}]
|
\item[\tb{F[yuhjklbn]}]
|
||||||
Prefix: fight a monster (even if you only guess one is there).
|
Prefix: fight a monster (even if you only guess one is there).
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 do_name.c $NHDT-Date: 1543185069 2018/11/25 22:31:09 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.136 $ */
|
/* NetHack 3.6 do_name.c $NHDT-Date: 1546987367 2019/01/08 22:42:47 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.140 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) Pasi Kallinen, 2018. */
|
/*-Copyright (c) Pasi Kallinen, 2018. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -605,10 +605,10 @@ int gloc;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Sprintf(tmpbuf, "Pick a target %s%s%s",
|
Sprintf(tmpbuf, "Pick %s%s%s",
|
||||||
gloc_descr[gloc][1],
|
an(gloc_descr[gloc][1]),
|
||||||
gloc_filtertxt[iflags.getloc_filter],
|
gloc_filtertxt[iflags.getloc_filter],
|
||||||
iflags.getloc_travelmode ? " for travel" : "");
|
iflags.getloc_travelmode ? " for travel destination" : "");
|
||||||
end_menu(tmpwin, tmpbuf);
|
end_menu(tmpwin, tmpbuf);
|
||||||
pick_cnt = select_menu(tmpwin, PICK_ONE, &picks);
|
pick_cnt = select_menu(tmpwin, PICK_ONE, &picks);
|
||||||
destroy_nhwindow(tmpwin);
|
destroy_nhwindow(tmpwin);
|
||||||
@@ -628,7 +628,7 @@ boolean force;
|
|||||||
const char *goal;
|
const char *goal;
|
||||||
{
|
{
|
||||||
const char *cp;
|
const char *cp;
|
||||||
struct {
|
static struct {
|
||||||
int nhkf, ret;
|
int nhkf, ret;
|
||||||
} const pick_chars_def[] = {
|
} const pick_chars_def[] = {
|
||||||
{ NHKF_GETPOS_PICK, LOOK_TRADITIONAL },
|
{ NHKF_GETPOS_PICK, LOOK_TRADITIONAL },
|
||||||
@@ -636,7 +636,7 @@ const char *goal;
|
|||||||
{ NHKF_GETPOS_PICK_O, LOOK_ONCE },
|
{ NHKF_GETPOS_PICK_O, LOOK_ONCE },
|
||||||
{ NHKF_GETPOS_PICK_V, LOOK_VERBOSE }
|
{ NHKF_GETPOS_PICK_V, LOOK_VERBOSE }
|
||||||
};
|
};
|
||||||
const int mMoOdDxX_def[] = {
|
static const int mMoOdDxX_def[] = {
|
||||||
NHKF_GETPOS_MON_NEXT,
|
NHKF_GETPOS_MON_NEXT,
|
||||||
NHKF_GETPOS_MON_PREV,
|
NHKF_GETPOS_MON_PREV,
|
||||||
NHKF_GETPOS_OBJ_NEXT,
|
NHKF_GETPOS_OBJ_NEXT,
|
||||||
@@ -807,8 +807,8 @@ const char *goal;
|
|||||||
} else if (c == g.Cmd.spkeys[NHKF_GETPOS_LIMITVIEW]) {
|
} else if (c == g.Cmd.spkeys[NHKF_GETPOS_LIMITVIEW]) {
|
||||||
static const char *const view_filters[NUM_GFILTER] = {
|
static const char *const view_filters[NUM_GFILTER] = {
|
||||||
"Not limiting targets",
|
"Not limiting targets",
|
||||||
"Limiting targets to in sight",
|
"Limiting targets to those in sight",
|
||||||
"Limiting targets to in same area"
|
"Limiting targets to those in same area"
|
||||||
};
|
};
|
||||||
|
|
||||||
iflags.getloc_filter = (iflags.getloc_filter + 1) % NUM_GFILTER;
|
iflags.getloc_filter = (iflags.getloc_filter + 1) % NUM_GFILTER;
|
||||||
@@ -824,8 +824,10 @@ const char *goal;
|
|||||||
goto nxtc;
|
goto nxtc;
|
||||||
} else if (c == g.Cmd.spkeys[NHKF_GETPOS_MENU]) {
|
} else if (c == g.Cmd.spkeys[NHKF_GETPOS_MENU]) {
|
||||||
iflags.getloc_usemenu = !iflags.getloc_usemenu;
|
iflags.getloc_usemenu = !iflags.getloc_usemenu;
|
||||||
pline("%s a menu to show possible targets.",
|
pline("%s a menu to show possible targets%s.",
|
||||||
iflags.getloc_usemenu ? "Using" : "Not using");
|
iflags.getloc_usemenu ? "Using" : "Not using",
|
||||||
|
iflags.getloc_usemenu
|
||||||
|
? " for 'm|M', 'o|O', 'd|D', and 'x|X'" : "");
|
||||||
msg_given = TRUE;
|
msg_given = TRUE;
|
||||||
goto nxtc;
|
goto nxtc;
|
||||||
} else if (c == g.Cmd.spkeys[NHKF_GETPOS_SELF]) {
|
} else if (c == g.Cmd.spkeys[NHKF_GETPOS_SELF]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user