Sitelet https://github.com/NetHack/NetHack/pull/1687
Skip to content

Eating and trapped followers accompany level teleportation - #1687

Open
crissman wants to merge 11 commits into
NetHack:NetHack-5.0from
crissman:eating-pet-follow
Open

crissman wants to merge 11 commits into
NetHack:NetHack-5.0from
crissman:eating-pet-follow

Conversation

@crissman

@crissman crissman commented Sep 29, 2026 •

Copy link
Copy Markdown

Eating and trapped monsters do not accompany the hero during level teleportation.

"Magical transport, you say? Hold on a second, my mouth is full."

Otherwise eligible followers now accompany level teleportation while eating or trapped, whether tame or hostile. They retain their remaining eating time and escape their old trap. Stair and ladder travel, falls, and portal travel retain their existing eating and trap restrictions.

Transitions scheduled by level_tele() carry an explicit marker. During those transitions, eating and trapping do not block eligible followers. The existing ordinary trap-escape attempt remains unchanged. Existing relmon() cleanup clears trapped status and handles pit filling when followers leave the level. Existing sleep/paralysis, distance, and Amulet restrictions remain in effect. The change is recorded in doc/fixes5-0-1.txt.

Validation: all 22 scenarios passed using a macOS test executable through the terminal interface in disposable wizard games. Real level teleportation carried eating pets and hostile followers between levels, preserved eating timers, freed followers from bear traps, webs, and pits, and cleared pending transition flags. Stair travel left eating followers behind. Sleeping and Amulet-carrying followers stayed behind; sleeping followers retained their trapped status. Additional controls covered paralysis, distance, portals, falls, ladders, and unmarked transitions. git diff --check passes. The patch has not been installed in the live game.

@crissman crissman changed the title Allow eating pets to follow level teleportation Eating and trapped followers accompany level teleportation Sep 29, 2026
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.

1 participant