From: Pasi Kallinen Date: Sun, 21 Aug 2022 09:10:08 +0000 (+0300) Subject: Rename command to #debugfuzzer, add some z and doc X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b163d89b0e57b7ac66274017588972dd620a834;p=nethack Rename command to #debugfuzzer, add some z and doc --- diff --git a/doc/Guidebook.mn b/doc/Guidebook.mn index 20f50eeb0..2c974b986 100644 --- a/doc/Guidebook.mn +++ b/doc/Guidebook.mn @@ -1243,6 +1243,9 @@ Autocompletes. Default key is \(oqM-C\(cq. .lp "" See the section below entitled \(lqConduct\(rq for details. +.lp #debugfuzzer +Start the fuzz tester. +Debug mode only. .lp "#dip " Dip an object into something. Autocompletes. diff --git a/doc/Guidebook.tex b/doc/Guidebook.tex index fb6c653ee..4fd032609 100644 --- a/doc/Guidebook.tex +++ b/doc/Guidebook.tex @@ -1350,6 +1350,10 @@ Default key is `{\tt M-C}'.\\ %.lp "" See the section below entitled ``Conduct'' for details. %.lp +\item[\tb{\#debugfuzzer}] +Start the fuzz tester. +Debug mode only. +%.lp \item[\tb{\#dip}] Dip an object into something. Autocompletes. Default key is `{\tt M-d}'.\\ %.lp "" diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index afdeb9996..fcf6c47e8 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1011,7 +1011,7 @@ if a pet gelatinous cube eats a container, treat it the same as when a hostile one does: the container is destroyed but its conters are engulfed when breaking a wand of sleep hits the hero with the explosion, don't describe that as "the sleep ray hits you" -expose fuz tester to wizard-mode as #fuzzer extended command +expose fuzz tester to wizard-mode as #debugfuzzer extended command monsters which cannot move due to boulders or walls try to escape intelligent monsters see and remember when others trigger traps diff --git a/src/cmd.c b/src/cmd.c index 110324c8b..6b75b834d 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1539,13 +1539,13 @@ wiz_panic(void) return ECMD_OK; } -/* #fuzzer command - fuztest the program */ +/* #debugfuzzer command - fuzztest the program */ static int wiz_fuzzer(void) { - pline("The fuz tester will make NetHack execute random keypresses."); + pline("The fuzz tester will make NetHack execute random keypresses."); pline("There is no conventional way out of this mode."); - if (paranoid_query(TRUE, "Do you want to start fuz testing?")) + if (paranoid_query(TRUE, "Do you want to start fuzz testing?")) iflags.debug_fuzzer = TRUE; /* Thoth, take the reins */ return ECMD_OK; } @@ -2504,6 +2504,8 @@ struct ext_func_tab extcmdlist[] = { doclose, 0, NULL }, { M('C'), "conduct", "list voluntary challenges you have maintained", doconduct, IFBURIED | AUTOCOMPLETE | GENERALCMD, NULL }, + { '\0', "debugfuzzer", "start the fuzz tester", + wiz_fuzzer, IFBURIED | WIZMODECMD | NOFUZZERCMD, NULL }, { M('d'), "dip", "dip an object into something", dodip, AUTOCOMPLETE | CMD_M_PREFIX, NULL }, { '>', "down", "go down a staircase", @@ -2531,8 +2533,6 @@ struct ext_func_tab extcmdlist[] = { dofire, 0, NULL }, { M('f'), "force", "force a lock", doforce, AUTOCOMPLETE, NULL }, - { '\0', "fuzzer", "start the fuz tester", - wiz_fuzzer, IFBURIED | WIZMODECMD | NOFUZZERCMD, NULL }, { ';', "glance", "show what type of thing a map symbol corresponds to", doquickwhatis, IFBURIED | GENERALCMD, NULL }, { '?', "help", "give a help message",