Skip to content

FRLG maps: Cinnabar Gym's quiz doors and cut trees are gates - #102

Merged
dayfine merged 2 commits into
mainfrom
maps/frlg-cinnabar-quiz-gates
Nov 14, 2026
Merged

dayfine merged 2 commits into
mainfrom
maps/frlg-cinnabar-quiz-gates

Conversation

@dayfine

@dayfine dayfine commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Cinnabar Gym's six quiz doors were plain walls on the map, but the game opens each one once its quiz is answered (FLAG_CINNABAR_GYM_QUIZ_n, kept by the gym's OnLoad); AutoStory's legs held to a door it took for a wall and ran through it. Cut trees had the opposite problem: a tree is an object on floor, so after a Cut the planner still routed around it. The generator now marks each door a gate (opens_by: quiz_answer, an overlay opens it once its flag is set) and every cut tree's tile a gate (cut_tree_<x>_<y>, opens_by: cut, the tree's FLAG_TEMP hide flag, which a warp clears so the tree grows back); the tree object stays. Tested with the full unit suite, the generator --check, map_overlays check/audit, frlg_map_set check, runtime_map_pack, the import audit with schema and contract_format --check. The user approved marking the doors as gates.

dayfine and others added 2 commits November 14, 2026 13:20
Cinnabar Gym's blockdata has its six quiz doors shut, and the gym's OnLoad
opens each one whose FLAG_CINNABAR_GYM_QUIZ_<n> is set; the right answer at
quiz machine <n> runs the same open script and sets the flag. The maps had
the doors as plain walls, so AutoStory's planned legs on console B held to a
"wall" that was an open door and ran through it (14.01, 14.02b), and the
plans step through each door a tile at a time instead.

The generator now makes each door a gate (`G`, opens_by quiz_answer, the
door's flag): its tiles are the walls the open script makes passable, one
barrier row each (door 4: two tiles of a column). The overlay opens each
gate once its flag is set. quiz_answer is a new opens_by: a door the story
opens, never a press on it. The user approved marking the doors as gates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
A cut tree is an object on open ground. AutoStory plans saw it only as
something standing on a floor tile, so after a Cut the planner still routed
around a tree that was gone, and the plans stepped over the cut tile by hand
(Celadon Gym's inner tree, 14.04b).

The generator now makes every cut_tree object's tile a gate (`G`,
`cut_tree_<x>_<y>`, `opens_by: cut`, the tree's hide flag), opening to the
ground under it. The hide flag is FLAG_TEMP_*, cleared on every warp, so a
consumer closes the gate again when the player leaves the map. The object
stays in `npcs`. The publication test undoes these gates before digesting.

Also reformats runtime-map-v2.schema.json (contracts check).
@dayfine dayfine changed the title FRLG maps: Cinnabar Gym's quiz doors are gates FRLG maps: Cinnabar Gym's quiz doors and cut trees are gates Nov 14, 2026
@dayfine
dayfine marked this pull request as ready for review November 14, 2026 22:09
@dayfine
dayfine merged commit c1962ff into main Nov 14, 2026
8 checks passed
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