Add paranoid:swim to prevent typoing into water or lava

In the name of accessibility: Prevent moving into dangerous liquids.

Now with themed rooms, water and lava are more common, and it's
unreasonable to expect blind players to check every step for those.
With paranoid:swim, just prevent normal walking into those liquids,
unless you prefix the movement with 'm', or if the liquid would not
harm you.

Doesn't completely prevent an accidental dunking - for example
if the hero is impaired or couldn't see the liquid.

This comes from xNetHack by copperwater <aosdict@gmail.com>
with some changes to the code.
This commit is contained in:
Pasi Kallinen
2022-02-12 16:30:39 +02:00
parent c862f2a9ca
commit 03c715f179
9 changed files with 66 additions and 1 deletions

View File

@@ -4054,6 +4054,8 @@ than immediately praying; on by default;
.PL Remove
require selection from inventory for \(oqR\(cq and \(oqT\(cq
commands even when wearing just one applicable item.
.PL swim
prevent walking into water or lava.
.PL all
turn on all of the above.
.PE
@@ -5508,6 +5510,8 @@ If this is the case, disable the
.op number_pad
option and use the traditional
Rogue-like commands.
.lp paranoid_confirmation:swim
Prevent walking into water or lava.
.lp autodescribe
Automatically describe the terrain under the cursor when targeting.
.lp mention_walls