'wizmgender' flag

"Demote" wizmgender from an obscure wizard mode extended command
to an obscure wizard mode boolean option.  Behaves the same except
that no message is given when the value gets toggled.
This commit is contained in:
PatR
2021-02-18 23:54:30 -08:00
parent a646764cc7
commit f480803970
5 changed files with 9 additions and 18 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.454 $ $NHDT-Date: 1613444931 2021/02/16 03:08:51 $ NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.455 $ $NHDT-Date: 1613721260 2021/02/19 07:54:20 $
General Fixes and Modified Features General Fixes and Modified Features
----------------------------------- -----------------------------------
@@ -509,6 +509,7 @@ changes accompanying sorting of discoveries resulted in omitting very last
change to can_reach_floor() resulted in hero being unable to reach the floor change to can_reach_floor() resulted in hero being unable to reach the floor
when held by a lichen when held by a lichen
panic if lua init fails panic if lua init fails
change wizard mode command #wizmgender to wizard mode option 'wizmgender'
curses: 'msg_window' option wasn't functional for curses unless the binary curses: 'msg_window' option wasn't functional for curses unless the binary
also included tty support also included tty support
@@ -788,7 +789,7 @@ consolidate several monsters that differed only by their gender into their
single species single species
added wizmgender debugging command to display female monsters in red inverse; added wizmgender debugging command to display female monsters in red inverse;
helpful for debugging gender-related matters on tty; currently ignored helpful for debugging gender-related matters on tty; currently ignored
on other window ports on other window ports [later: changed from command to boolean option]
record number of encountered bones levels in xlogfile record number of encountered bones levels in xlogfile
add bonesless to extended conducts field in xlogfile add bonesless to extended conducts field in xlogfile
show bones levels information in enlightenment at end of game or in explore show bones levels information in enlightenment at end of game or in explore
+2
View File
@@ -550,6 +550,8 @@ opt_##a,
"the foreground/background colors of windows") "the foreground/background colors of windows")
NHOPTC(windowtype, WINTYPELEN, opt_in, set_gameview, No, Yes, No, No, NHOPTC(windowtype, WINTYPELEN, opt_in, set_gameview, No, Yes, No, No,
NoAlias, "windowing system to use (should be specified first)") NoAlias, "windowing system to use (should be specified first)")
NHOPTB(wizmgender, 0, opt_in, set_wizonly, Off, Yes, No, No, NoAlias,
&iflags.wizmgender)
NHOPTB(wizweight, 0, opt_in, set_wizonly, Off, Yes, No, No, NoAlias, NHOPTB(wizweight, 0, opt_in, set_wizonly, Off, Yes, No, No, NoAlias,
&iflags.wizweight) &iflags.wizweight)
NHOPTB(wraptext, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias, NHOPTB(wraptext, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,
+1 -3
View File
@@ -1,4 +1,4 @@
/* NetHack 3.7 cmd.c $NHDT-Date: 1611952382 2021/01/29 20:33:02 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.452 $ */ /* NetHack 3.7 cmd.c $NHDT-Date: 1613721260 2021/02/19 07:54:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.457 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2013. */ /*-Copyright (c) Robert Patrick Rankin, 2013. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -2050,8 +2050,6 @@ struct ext_func_tab extcmdlist[] = {
wiz_makemap, IFBURIED | WIZMODECMD, NULL }, wiz_makemap, IFBURIED | WIZMODECMD, NULL },
{ C('f'), "wizmap", "map the level", { C('f'), "wizmap", "map the level",
wiz_map, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL }, wiz_map, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL },
{ '\0', "wizmgender", "force added info about monster gender",
wiz_mgender, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL },
{ '\0', "wizrumorcheck", "verify rumor boundaries", { '\0', "wizrumorcheck", "verify rumor boundaries",
wiz_rumor_check, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL }, wiz_rumor_check, IFBURIED | AUTOCOMPLETE | WIZMODECMD, NULL },
{ '\0', "wizseenv", "show map locations' seen vectors", { '\0', "wizseenv", "show map locations' seen vectors",
+1 -12
View File
@@ -1,4 +1,4 @@
/* NetHack 3.7 detect.c $NHDT-Date: 1606009000 2020/11/22 01:36:40 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.123 $ */ /* NetHack 3.7 detect.c $NHDT-Date: 1613721262 2021/02/19 07:54:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.131 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2018. */ /*-Copyright (c) Robert Patrick Rankin, 2018. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -2057,15 +2057,4 @@ reveal_terrain(int full, /* wizard|explore modes allow player
return; return;
} }
int
wiz_mgender(void)
{
iflags.wizmgender = !iflags.wizmgender;
pline("wizmgender toggled %s", iflags.wizmgender ? "on" : "off");
if (!u.uswallow)
see_monsters();
map_redisplay();
return 0; /* no time */
}
/*detect.c*/ /*detect.c*/
+2 -1
View File
@@ -1,4 +1,4 @@
/* NetHack 3.7 options.c $NHDT-Date: 1613293046 2021/02/14 08:57:26 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.506 $ */ /* NetHack 3.7 options.c $NHDT-Date: 1613721262 2021/02/19 07:54:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.507 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Michael Allison, 2008. */ /*-Copyright (c) Michael Allison, 2008. */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -4225,6 +4225,7 @@ optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op)
if (iflags.use_color) if (iflags.use_color)
g.opt_need_redraw = TRUE; /* darkroom refresh */ g.opt_need_redraw = TRUE; /* darkroom refresh */
break; break;
case opt_wizmgender:
case opt_showrace: case opt_showrace:
case opt_use_inverse: case opt_use_inverse:
case opt_hilite_pile: case opt_hilite_pile: