paranoid_confirm:Trap vs vapor+gas cloud regions

Extend paranoid_confirm:trap to also ask for confirmation when
attempting to enter a gas cloud region (scroll of stinking cloud,
breath from green dragons or iron golems, steam clouds from boiling
water, vapor left by fog cloud movement, no doubt several others).

Like with traps, can be overridden for a given move by using the
'm' prefix.  Unlike traps, doesn't try to guess whether moving into
a region will be harmless.

Doesn't affect movement into cloud terrain (Plane of Air).

Update the Guidebook to describe the revised behavior of
paranoid_confirm:trap and to mention how #terrain deals with regions.

'any_visible_region()' got mixed in with this but isn't used yet.
Affects extern.h and region.c.
This commit is contained in:
PatR
2024-08-11 14:59:57 -07:00
parent 37ad527512
commit 0eb8896301
6 changed files with 86 additions and 16 deletions

View File

@@ -48,7 +48,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{July 29, 2024}
\date{August 11, 2024}
\maketitle
@@ -1804,6 +1804,9 @@ In normal play you can view the explored portion of the current level's
map without monsters; without monsters and objects; or without monsters,
objects, and traps.\\
%.lp ""
If there are visible clouds of gas in view, they are treated like traps
when deciding whether to show them or the floor underneath them.\\
%.lp ""
In explore mode, you can choose to view the full map rather than just
its explored portion.
In debug mode there are additional choices.\\
@@ -4752,6 +4755,8 @@ than immediately praying; on by default;
\item[{\tt trap~~~}]
require `{\tt y}' to confirm an attempt to move into or onto a known trap,
unless doing so is considered to be harmless;
when enabled, this confirmation is also used for moving into visible
gas cloud regions;
(to require ``yes'' rather than just `y', set Confirm too);
confirmation can be skipped by using the `{\tt m}' movement prefix;
\item[{\tt swim~~~}]
@@ -4770,7 +4775,7 @@ turn on all of the above.
\elist
%.ei
%.ed
By default, the pray and swim choices are enabled, the others disabled.
By default, the pray, swim, and trap choices are enabled, the others disabled.
To disable them without setting
any of the other choices, use ``{\it paranoid\verb+_+confirmation:none}''.
To keep them enabled while setting any of the others, you can