swapping places with a pet
Stepping into a pet's square moves it into yours.
Builtneeds review1 change builtSeen all the timeLast touched November 15, 2026: a change of its own was written or changed. Commit ab9a6ad6f.
In the terminal
"You swap places with your little dog." ("...with the peaceful dwarf.", 3.7); the two glyphs exchange squares. Refused: "You stop. <Pet> can't move diagonally.", "...won't fit through.", "...won't fit into the same spot that you're at.", "...can't move out of that bear trap.", "...doesn't want to swap places." (into danger, or a shopkeeper, priest, guard, leader or the Oracle). A pet swapped into water or a trap that dies: "You feel guilty about losing your pet like this.". A displacer beast may swap with the hero on its own: "The displacer beast swaps places with you...".
Quotes from NetHack
You swap places with <your little dog>.
3 more quotes
You stop. <Your pony> can't move diagonally.
You stop. <The watchman> doesn't want to swap places.
<The displacer beast> swaps places with you...
In Codex
A monster or pet that moves slides from its old square to its new one instead of blinking across.
Builtneeds reviewTransition
Details
Every tracked letter glides, everywhere (N-86; director, 2026-10-31: "Monsters can glide everywhere, and so can pets and heros"; the hero's own steps and runs glide already, codex.run_glide). When nh-moments' tracker follows a monster from one square to a nearby one (the same letter in the same color gone from one square and appearing within two in the same input turn, D-24; never the species, N-79), the letter drawn on the new square starts back on the old one and slides to its own place over monster_glide_seconds, eased like the hero's step and carrying its speed into the next slide if it moves again first; shorter while keys are queued (pace.pause_when_keys_waiting). A fast monster's two-square move slides along one line. A pack stepping together (identical letters in a line, the back one's square emptied and a new one in front, the squares between showing the same letter in both looks) steps one square each, so a letter never slides through its packmate and a pack coming down a corridor closes in as a moving line (D-22); where two packmates could each have stepped in, nothing glides. The signal audit (2026-10-31) added three guards: a letter marked as the pet (hilite_pet) and one not are never one thing; a letter that vanished in an earlier look of the same input turn loses to one that vanished in this look (a monster killed earlier in the turn doesn't walk off), and stays vanished once the hero has moved on (a run, travel); the remaining look-alikes (a monster teleported, hidden or newly in sight within two squares, hallucination, a curled long worm) give at most a wrong slide over the right picture. Only the letter moves (its pet underline with it): the squares are what nh-scene says, the director's camera reads the game's squares, and a letter hit while still sliding hurries to its square over catch_up_seconds, the recoil riding on the last of its slide (codex.plays_meet, D-81). No match or a tie: the letter blinks, as on the terminal. A wrong match is a wrong slide, never wrong information. A pet swapping places with the hero (nh-moments' swap: it left the square the hero now stands on for the one the hero stood on the look before, so mounting a steed is not one; animation idea 35, approved with this, D-17) steps pet_swap_steps_aside (0.3 of a square) to the right of its way at the middle of its walk and back, so the two letters pass beside each other. Off (monster_glide = false), letters blink as the terminal draws them.
- Id
codex.monster_glide- Exact state
- Built, not reviewed
- Playtests
journey-game,journey-dads-options- Settings
animations.monster_glide,animations.monster_glide_seconds,animations.pet_swap_steps_aside,pace.pause_when_keys_waiting- Code
crates/nh-moments/src/track.rs,crates/nh-plays/src/walk.rs,crates/nh-plays/src/lib.rs,crates/codex-client/src/draw/in_flight.rs
| N-86 | Done | Monsters walk from square to square instead of blinking |
| N-79 | Done | The tracker's same-thing test includes the species index |
Accepted pictures and playtests
Playtests: journey-game, journey-dads-options
