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

forme -> form #178

Merged
merged 6 commits into from
Jun 30, 2023
Merged

forme -> form #178

merged 6 commits into from
Jun 30, 2023

Conversation

red031000
Copy link
Member

No description provided.

; Convert species and forme into
thumb_func_start SpeciesAndFormToMoveTutorIndex
SpeciesAndFormToMoveTutorIndex: ; 0x02202C7C
; Convert species and formeinto
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

messed up the comments here but it's nbd

## for set in tutor
oshie_begin
## for move in set.moves
oshie_add {{ move }}
## endfor
oshie_end
## endfor
.size gWazaOshieMoves,.-gWazaOshieMoves
.size gMoveTutorMoves,.-gMoveTutorMoves
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change this file's name too while we're at it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that might be a bit more difficult, since the stuff is passed into o2narc iirc

int state;
int effectTimer;
int duration;
int species;
int fileId;
int partyMonIndex; //same information as B's unkc65
ParticleSystem* particleSystem;
} IconFormeChangeWork;
} IconFormChangeWork;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're wanting to remove the work notation I'll point it out whenever I see it/you can do the same for me in my reviews and we'll work towards phasing them out. Generally data should work if it seems too awkward to just cut the word out entirely. So this struct could be IconFormChange or IconFormChangeData or anything else but IconFormChangeWork

} PartyMenuStruct;

void PartyMenu_InitIconFormeChangeWork(PartyMenuStruct* unkPtr);
BOOL PartyMenu_AnimateIconFormeChange(PartyMenuStruct* unkPtr);
void PartyMenu_InitIconFormChangeWork(PartyMenuStruct* unkPtr);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phase out work notation in the function name

u32 ret;

encry = AcquireBoxMonLock(boxMon);
species = GetBoxMonData(boxMon, MON_DATA_SPECIES, NULL);
isEgg = GetBoxMonData(boxMon, MON_DATA_IS_EGG, NULL);
forme = _BoxMonGetForme(boxMon);
ret = GetMonIconNaixEx(species, isEgg, forme);
form = _BoxMonGetForm(boxMon);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why there's a missing prefix here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

genuinely no idea

@adrienntindall adrienntindall merged commit 6df5e87 into pret:master Jun 30, 2023
github-actions bot pushed a commit that referenced this pull request Jun 30, 2023
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.

2 participants