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
+9 -3
View File
@@ -46,7 +46,7 @@
.ds f0 \*(vr
.ds f1 \" empty
.\"DO NOT REMOVE NH_DATESUB .ds f2 DATE(%B %-d, %Y)
.ds f2 July 29, 2024
.ds f2 August 11, 2024
.
.\" A note on some special characters:
.\" \(lq = left double quote
@@ -1696,6 +1696,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.
@@ -4323,7 +4326,8 @@ symbols for the various object types.
Any omitted types are filled in at the end from the previous order.
.lp paranoid_confirmation
A space separated list of specific situations where alternate
prompting is desired. The default is \(lqparanoid_confirmation:pray swim trap\(rq.
prompting is desired.
The default is \(lqparanoid_confirmation:pray swim trap\(rq.
.PS Were-change
.PL Confirm
for any prompts which are set to require \(lqyes\(rq rather than \(oqy\(cq,
@@ -4357,6 +4361,8 @@ than immediately praying; on by default;
.PL trap
require \(oqy\(cq 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 \(lqyes\(rq rather than just \(oqy\(cq, set Confirm too);
confirmation can be skipped by using the \(oq\f(CRm\fP\(cq movement prefix;
.PL swim
@@ -4373,7 +4379,7 @@ commands even when wearing just one applicable item;
.PL all
turn on all of the above.
.PE
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 \f(CRparanoid_confirmation:none\fP.
To keep them enabled while setting any of the others, you can
+7 -2
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
+3 -1
View File
@@ -1,4 +1,4 @@
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1457 $ $NHDT-Date: 1721684298 2024/07/22 21:38:18 $
NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1460 $ $NHDT-Date: 1723410638 2024/08/11 21:10:38 $
General Fixes and Modified Features
-----------------------------------
@@ -2546,6 +2546,8 @@ paranoid_confirm:swim to prevent accidental dunking into dangerous liquids;
paranoid_confirm:trap to confirm entering a known trap unless it is harmless;
like revised paranoid_confirm:pray, requires y/n response; add
paranoid_confirm:Confirm to require yes/no instead
extend 'paranoid_confirm:trap' to request confirmation when entering visible
gas cloud regions
paranoid_confirm:Autoall to confirm picking 'A' in menustyle:Full filter menu
looking at a monster will indicate whether it is asleep, and waking up a
monster yields a message