Skip to content

PokemonFRLG: Fly and field Surf steps, with sim support - #406

Draft
dayfine wants to merge 6 commits into
frlg/stage8-rocktunnelfrom
frlg/field-moves
Draft

dayfine wants to merge 6 commits into
frlg/stage8-rocktunnelfrom
frlg/field-moves

Conversation

@dayfine

@dayfine dayfine commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Depends on #293 (base frlg/stage8-rocktunnel; the diff shows only this change).

Adds the two field-move GAME steps the checkpoints after Celadon need, so their plans can declare them like use_item/lift_floor.

  • fly (town, slot, optional menu_row): party, the Fly user's FLY, cursor to the town's cell on the fly map (pokefirered region_map_layout_kanto.h, from the corner a hold up-left leaves it in), A; ends on the town's heal-location tile (heal_locations.json), facing south.
  • surf (direction): start_surf() facing the water; ends on that water tile. fixed_route() now walks legs from water surfing, with the step off onto land as its own one-tile leg (as the planner makes it). Story ROUTE planning from water already surfed; Surf itself stays off for planned routes.
  • Overworld sim: Surf (onto the water, surf pace, off onto land; the walker's RouteAction::SURF) and Fly (to a town's landing tile); the row sim plays both steps.

Testing: new suite PokemonFRLG::AutoStoryFieldMoves (fly map vs. the built-in maps: every landing tile is below a door; step args; Fly Lavender to Celadon on the sim; Surf, legs across and off Viridian City's pond on the sim; planned routes off and onto the pond) passes 6/6 in the headless runner. No console run: fly cursor timing, the party cursor start and the landing facing are not measured yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss

dayfine and others added 2 commits November 11, 2026 20:11
Two GAME steps for the checkpoints after Celadon: "fly" (party, the Fly
user's FLY, the town's cell on the fly map from pokefirered's Kanto
region map layout, landing on its heal location) and "surf" (face the
water, A, YES). Legs from the water are walked surfing, with a one-tile
leg off it as the planner makes. The overworld sim models Surf (onto the
water, surf pace, off onto land) and Fly (to a town's landing tile), and
the row sim plays both steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
Pallet Town's pond lies in its Fat Man's wander box, which the planner
treats as standing room, so no leg crosses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
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