Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move battle state into gBattleStruct and categorize #2704

Draft
wants to merge 95 commits into
base: upcoming
Choose a base branch
from

Conversation

mrgriffin
Copy link
Collaborator

Collects the various battle state variables and arranges them under gBattleStruct members field, sides[i], sides[i].party[j], and battlers[i].

Currently a draft because the work is ongoing.

sides[i] is computed incorrectly as (battlerId & BIT_SIDE) instead of
GetBattlerSide(battlerId). This will cause errors in link battles.
… => battlers[i].stockpile{Counter,Def,SpDef,BeforeDef,BeforeSpDef}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup type: data Changes focus on data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants