Repository navigation
BDSP AutoStory: fight a wild battle the game will not let the walker leave - #255
Merged
dayfine merged 6 commits intoNov 9, 2026
Merged
Conversation
…battle escape_wild_battle() only pressed Run until a timeout; in Oreburgh Mine an Onix's Bind refused nine Runs in 60 s and the walk failed (console B, 2026-11-07). Its decisions now run over a small WildBattleEscapeActions seam (WildBattlePolicy.h) with a console binding and a GridSim fake, so the simulation can script a battle that refuses the escape. The new GridSim case "bound: every Run refused" fails: the policy still only runs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
…leave On console B (2026-11-07) an Onix's Bind in Oreburgh Mine refused nine Runs in a row and escape_wild_battle() gave up with "Exit transition and late main-menu fallback could not confirm escape." The escape policy now counts refused Runs (the battle menu back after Run) and, after `run_refusals` of them (default 3), fights the battle to its end through the existing fight_wild_battle() path instead of pressing Run until the attempts run out. Both the count and the fallback are policy data, so GridSim runs the same decisions with a scripted battle; the wall-leg GridSim test and the policy tests cover escape, fight, and fight turned off. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
…' into bdsp/autostory-cant-escape
…t-escape Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
…' into bdsp/autostory-cant-escape # Conflicts: # SerialPrograms/Source/PokemonBDSP/Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_GridSim_Tests.cpp
GridSim_Tests went over the 1000-line limit once the base's new grid tests met this PR's. This PR's wall-leg battle cases move, unchanged, to Simulation/PokemonBDSP_AutoStory_WallBattleSim_Tests, one UnitTest per case, and GridSim_Tests is back to the base's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
dayfine
marked this pull request as ready for review
November 9, 2026 04:26
dayfine
merged commit Nov 9, 2026
352b050
into
bdsp/autostory-mine-floaroma-wip
17 of 23 checks passed
dayfine
added a commit
that referenced
this pull request
Nov 9, 2026
…story-warp-events GridSim walk_to_wall: keep both the scripted wall-leg wild battle count (#255) and the warp fade report (#284). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss
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.
Depends on #226
On console B (2026-11-07) an Onix's Bind in Oreburgh Mine refused nine Runs in a row and
escape_wild_battle()gave up with "Exit transition and late main-menu fallback could not confirm escape." This change puts the escape's decisions behind a small seam (WildBattleEscapeActions+WildBattleEscapePolicy, data: run attempts, refusals before the fallback, the fallback itself) so the console and GridSim run the same policy. After three refused Runs (the battle menu back each time) the walker now fights the battle to its end through the existingfight_wild_battle()path instead of pressing Run until the attempts run out. The first commit adds the seam and a red GridSim test (a scripted wall-leg encounter whose battle refuses every Run); the second makes it green. Pure BDSP program files; nothing inPokemon/AutoStoryorPokemon/Navigationchanges. This is meant to become the BDSP binding of a sharedWildBattlePolicylater (plan item B2), not that itself.The GridSim cases live in their own file,
Simulation/PokemonBDSP_AutoStory_WallBattleSim_Tests.cpp, soGridSim_Tests.cppstays as the base has it and under 1000 lines.Testing: new suites "Wild battle escape policy" (7 cases) and "Grid sim: a wild battle on a wall leg" (3 cases) pass locally with the headless runner; all other BDSP AutoStory suites give the same results as the base tip (two pre-existing failures there: the 01.03 oreburgh_north and above_the_mine wanderer multi-seed sims). Code health: 0 failures against the base. Not yet run on the console.
🤖 Generated with Claude Code
https://claude.ai/code/session_013VUubhHeYSMGSSDXZkKZss