Skip to content

FRLG AutoStory stage 1b: battles and party - #351

Draft
dayfine wants to merge 9 commits into
frlg/stage1-overworldfrom
frlg/stage1-battles
Draft

dayfine wants to merge 9 commits into
frlg/stage1-overworldfrom
frlg/stage1-battles

Conversation

@dayfine

@dayfine dayfine commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Depends on #350

Second part of splitting #213: how the story fights. It brings the console actions battles use, the battle loop and its decisions (items, the nurse, level-up and evolution prompts), the party's moves and PP, and the summary reader. The battle data is cut to what the program reads: each species' types, each move's type, whether it does damage and its PP, and the type chart; the trainer table is gone, as a battle's foes now come from its step in the checkpoint's plan. When the plan has no move, the lead uses the damaging move with the best type multiplier against the foes, ties going to the plan's order, then slot order. Tested with the FRLG and Pokemon:: unit suites locally (all non-image tests pass) and the code-health gate.

🤖 Generated with Claude Code

https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss

The story's battle flow and party tracking, copied from #213's tip: the
console actions battles use, the battle loop and its decisions, the party's
moves and PP, the summary reader, and the battle data cut to types, damage
flags and PP. A battle's foes come from its plan; with no plan move, the
damaging move with the best type multiplier against them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
dayfine and others added 8 commits November 10, 2026 23:54
PokemonFRLG_Tests.cpp: take upstream PokemonAutomation#1896's removal of the exit_wild_battle tests; keep this branch's tests.

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