add 'montelecontrol' option (wizard-mode only)

Add a new debugging option, 'montelecontrol', that allows a wizard-
mode player to choose a teleporting monster's destination.  If player
picks a bad spot, confirmation will be requested.  If accepted, the
spot will be used even though the consequences could be bad; that's
on the player.  If rejected, the destination will be assigned as if
no control had been attempted rather than try again.

The fuzzer isn't allowed to override a bad spot if it tries to pick
one.  That would probably trigger a sanity_check warning; the fuzzer
causes impossible warnings to behave as if panic, so accepting a bad
spot would just be fuzzer suicide.  It is allowed to randomly set the
option and maybe--though extremely unlikely--randomly pick a valid
controlled destination.
This commit is contained in:
PatR
2023-06-09 00:56:53 -07:00
parent 62eacb11c4
commit e475dca209
8 changed files with 77 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
\author{Original version - Eric S. Raymond\\
(Edited and expanded for 3.7.0 by Mike Stephenson and others)}
%DO NOT REMOVE NH_DATESUB \date{DATE(%B %-d, %Y)}
\date{May 7, 2023}
\date{June 8, 2023}
\maketitle
@@ -4511,6 +4511,10 @@ Default `{\tt \verb+}+}'.
Prompt for new form whenever any monster changes shape (default off).
Debug mode only.
%.lp
\item[\ib{montelecontrol}]
Prompt for destination whenever any monster gets teleported (default off).
Debug mode only.
%.lp
\item[\ib{mouse\verb+_+support}]
Allow use of the mouse for input and travel.
Valid settings are: