Repository navigation
feat(port): [brain] charge writes the donor's charge table into the moves module - #122
Merged
Merged
Conversation
…float tests Walk(track=, facts=) keeps the cells a handler stores between AI frames (a counter, a gauge) and starts runs from known values; Walk.settle(pair, hp) runs a handler to its end and returns them, answering a float compare of the HP ratio against a constant from the species' data. Walk.of raises ValueError for a monster without an overlay. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
p3charge.read runs each charge-up pair from an empty gauge at an HP ratio in each of the helper's bands and takes the gauge left as its gain; the transform pair, the per-hit chips of the lowest rank and the two cooldowns come from the species' code and data. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…oves module brain.charge maps p3charge's donor onto the port's own moves: each charge-up pair's gain by HP band on the move [brain.pairs] plays for it, the transform on its move, em75's knockout reactions as the discharge pairs. mhfu-port build and inject write it as the module's charge table; splice prints it, and no longer reports a pair the table names as unused. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Stacked on #120. With
[brain] charge, the build reads the donor's charge state from its MHP3rd overlay and arms the framework's charge helper (#119) with it.p3charge): each charge-up pair (its handler reaches the gauge add) runs from an empty gauge at one HP ratio per band, and its gain is the gauge left.Walknow carries tracked entity cells between AI frames and answers HP-ratio float tests. The transform pair, the per-hit chips (lowest rank) and both cooldowns come from the species' code and data.brain.charge): charge-up and transform pairs map through[brain.pairs]to own moves (P3_CHARGE_UNMAPPED, an error for the transform); em75's knockout reactions are the discharge pairs (brain.fatigue's classifier). The moves module carries it ascharge,mhfu-port spliceprints it, and a pair it names is notP3_PAIR_UNUSED.Tests: unit (gains, mapping, findings); with game data, em040's numbers.
🤖 Generated with Claude Code