Implement PokePara system, WazaData, Item, and PokeParty#5
Open
AstrandPallas wants to merge 3 commits intomainfrom
Open
Implement PokePara system, WazaData, Item, and PokeParty#5AstrandPallas wants to merge 3 commits intomainfrom
AstrandPallas wants to merge 3 commits intomainfrom
Conversation
Contributor
SaltContainer
left a comment
There was a problem hiding this comment.
Only checked Pml.Item classes for now. Will look at the rest later
AstrandPallas
added a commit
that referenced
this pull request
Feb 8, 2026
- ItemManager.Get(): Remove null check before ID comparison (match Ghidra) - ItemManager.ItemID2BallID(): Remove null check on Get() result - ItemManager.BallID2ItemID(): Add GFL.ASSERT on lookup failure - ItemManager.ItemNoToWazaMachineID(): Remove null check, return 0xFF on error - ItemManager.IsGroupOf(): Remove null check on Get() result - ItemManager.GroupIdToItemNo(): Move o_pItemNo=0 to before return false - ItemTableExtensions.IsEventItem(): Use Pml.ItemType.EVENT instead of magic 9 - ItemData: Remove all null checks on Get() results (Get returns item[0] fallback)
a070415 to
516da5d
Compare
- PokePara: CoreParam, CoreDataBlocks A/B/D, Accessor, CalcTool, EvolveManager, BoxMarkController, SavePokeParty, SerializedPokemon (Core/Extensions/Full) - WazaData: WazaDataSystem, SickContParam - Item: ItemData, ItemManager, ItemTableExtensions (incl. GetHealingItemType) - PokeParty with member management and pokerus stubs - Battle/Logic: WAZADATA wrappers, BTL_ACTION, calc utilities
516da5d to
7bef860
Compare
Contributor
SaltContainer
left a comment
There was a problem hiding this comment.
Looked at the getters on Accessor and the CoreDataBlocks behind it. Will continue later.
|
|
||
| // TODO | ||
| public static void Initialize() { } |
Contributor
There was a problem hiding this comment.
This method is missing its entire implementation
Contributor
Author
There was a problem hiding this comment.
yea this one is still todo, needs some dependencies we dont have yet like the illegal egg data setup
- CoreDataBlockA: fix all boolean getters from >> loc & sz to (& mask) >> loc - CoreDataBlockA: remove unnecessary casts from camp_friendship - CoreDataBlockB: remove unnecessary casts from talent getters - CoreDataBlockB: add right bitshift to tamagoFlag/nicknameFlag getters - Accessor: init static fields to null per .cctor - Accessor: inline BLOCK_POS_TABLE as 32-entry static array - Accessor: add fast mode checks to ClearCalcData - Accessor: add GFL.ASSERT to StartFastMode/EndFastMode - Accessor: add asserts + delegate to unsafe in Serialize/Deserialize byte[] overloads - Accessor: simplify unsafe Serialize/Deserialize pointer arithmetic - Accessor: rewrite private Serialize/Deserialize with UnsafeUtility.MemCpy - Accessor: remove Decode/Encode from GetCoreDataBlockX infrastructure - Accessor: add DecodeAndCheckIllegalWrite/UpdateChecksumAndEncode to all getters/setters - Accessor: add m_pCalcData null checks to all CalcData getters - Accessor: fix GetDprIllegalFlag to use forWrite=true - Accessor: add GFL.ASSERT(false) to error/default paths - Accessor: replace GetBankUniqueID loop with pointer cast - Accessor: use .Equals() for CompareOyaName
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.
Summary
Changes
PokePara (15 files):
(field & mask) >> locpatternWazaData (2 files):
Item (3 files):
PokeParty:
Round 2 Review Fixes
(field & mask) >> locinstead offield >> loc & szStill TODO
Test plan