Conversation
Account for pet hunger while away from a level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Existingrelmon()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 indoc/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 --checkpasses. The patch has not been installed in the live game.