Repository navigation
Conversation
plan.json gets a contract per fight: the most the heal before it may take, the entry and exit item counts (hard), HP and Surf from the chain (informative), and pass figures (expected_pass, min_pass of 10, reset_budget). Between fights is now one heal (1 Super Potion if <= 50 HP missing, 2 if <= 100 and two spare, else a Full Restore) plus the Elixir before the Champion, which is now capped there. Lorelei's Lapras heal block is gone. Super Potion caps 0/1/1/2/2, Full Restore caps unchanged; chain total 10.25 tries.
This was referenced Nov 17, 2026
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 #114
The League plan had per-fight caps but nothing saying what you should be holding at each door, so it was hard to follow by hand or verify on the console. This adds a contract to each fight in plan.json: entry and exit item counts (hard), HP and Surf from the sim (a guide), and expected_pass / min_pass / reset_budget for a console check loop. Between fights is now one heal (1 Super Potion if at most 50 HP is missing, 2 if at most 100 and two are spare, else a Full Restore), and the Elixir is capped at the Champion. It also drops Lorelei's Lapras heal block and moves the Super Potion caps to 0/1/1/2/2. Over 2000 runs per fight the chain needs 10.25 expected tries; Bruno (37%), Lance (44%) and the Champion (40%) are flagged as too low for a 10-try check, and the doc lists what would raise them.
contracts --fillwrites the rows from the chain's boundaries.json. test_plan_contracts checks that the numbers add up and that the heal rule stays within its budget. The league and cli suites pass locally.