Repository navigation
Conversation
This was referenced Oct 28, 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.
Add the source-facing
volatile(mon)contract to the live native Gen2 model: confusion, flinch, Endure, recharge, protection counters, Focus Energy and X Accuracy address the actual shared-controller battler. Cache views on the transient model and retire withdrawn wrappers, avoiding LuaJIT weak-key closure retention and party/serialized view state. GSC counter retention follows actual protection effects rather than IDs.Depends on #351 (native model), #390 (priority) and the established native-mod host prerequisite #124. This older-host branch is independently exercised; it does not depend on the fork-only semantic-checkpoint backend. The compare against upstream main includes the still-unmerged priority/model prerequisites; the new delta is the volatile bridge and fixture.
Validation on this offered branch: 423/423 real native state/mechanics/ownership checks, 262/262 model checks, 83/83 priority checks. Actual API2 consumer; Gold/Silver/Crystal, Prism and Polished Crystal. A separately executed frozen Gen1 model comparison on this offered source passes 108 field/admission checks with unchanged reference hashes. GPU, unchanged-mod, complete source-model and release acceptance remain open. Protection RNG/opponent-first/Substitute mechanics are explicitly separate work.
Contributions by Roxas2712 — https://github.com/Roxas2712. These original integration contributions are offered to Cedric / UNDERdecoded under the specific PR permission in https://github.com/Roxas2712/Gen2Recomped/blob/main/LICENSE-ROXAS2712.md, including visible credit and preservation of existing licences; earlier/third-party permissions remain intact.