Repository navigation
FRLG maps: Cinnabar Gym's quiz doors and cut trees are gates - #102
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 14, 2026 22:09
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.
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 andcontract_format --check. The user approved marking the doors as gates.