Skip to content

Allow travel across visibly harmless traps - #1689

Open
crissman wants to merge 1 commit into
NetHack:NetHack-5.0from
crissman:harmless-trap-travel
Open

crissman wants to merge 1 commit into
NetHack:NetHack-5.0from
crissman:harmless-trap-travel

Conversation

@crissman

@crissman crissman commented Sep 29, 2026 •

Copy link
Copy Markdown

Automatic travel refuses routes across known traps that cannot affect you when flying or levitating.

Use the existing clear-immunity check when planning travel and deciding whether a known trap should stop it. Both flying and levitation allow routing across harmless floor-triggered traps, including fire traps and land mines. Preserve the travel route and suppress per-trap messages when flying or levitating over those traps.

Discovering a trap, secret door, or hidden passage still interrupts travel. An unnoticed airborne flyover does not discover a trap. Existing water and lava routing rules are unchanged, including the deliberate restriction on starting lava-walking travel from land.

Ordinary running still stops at known traps. Hallucination still prevents trusting a known trap's identity. Sokoban pits and holes remain blocked, and forced trap activation retains its normal behavior. Travel does not infer safety from non-obvious resistances. The change is recorded in doc/fixes5-0-1.txt.

Validation: refreshed onto NetHack-5.0 at 355638f797642649e731119f40dbad4904e34861 and squashed into one commit. Built and installed the refreshed terminal version in an isolated test directory. Recompiled the existing wizard test fixtures against the refreshed source; all three travel suites passed (172 checks): trap routing (25), airborne bypass (89), and travel continuity (58). These are game-engine tests using the terminal interface. git diff --check passes, and the patch ID matches the original PR’s final diff.

@paxed

paxed commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Does not apply, and needs to be squashed.

Use clear trap immunity when routing automatic travel. Preserve travel and suppress flyover messages for floor-triggered traps while flying or levitating, with the existing Sokoban and forced-activation restrictions.
@crissman
crissman force-pushed the harmless-trap-travel branch from be7db20 to 4950557 Compare October 16, 2026 00:17
@crissman

Copy link
Copy Markdown
Author

Updated and squashed. Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants