Skip to content

FRLG League: entry/exit contracts per fight, one heal between fights - #115

Draft
dayfine wants to merge 1 commit into
sim/frlg-league-retryfrom
sim/frlg-league-contracts
Draft

dayfine wants to merge 1 commit into
sim/frlg-league-retryfrom
sim/frlg-league-contracts

Conversation

@dayfine

@dayfine dayfine commented Nov 17, 2026

Copy link
Copy Markdown
Owner

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 --fill writes 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.

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.
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