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

Documenting code for the Stats Judge #358

Merged
merged 3 commits into from
Feb 4, 2025
Merged

Conversation

justusaac
Copy link
Contributor

I renamed ScrCmd_2EE to ScrCmd_JudgeStats and documented it. That function is basically just for the stats judge (scientist guy in the battle tower) to decide what to say.

@@ -4077,7 +4077,7 @@
.short 749
.endm

.macro ScrCmd_2EE arg0, arg1, arg2, arg3
.macro ScrCmd_JudgeStats arg0, arg1, arg2, arg3
Copy link
Collaborator

Choose a reason for hiding this comment

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

polish: For the ASM macro only, change the name to JudgeStats (so that scripts can reference it as such).

0x7D,
0x7E
// See message_bank_battle_tower.gmm
static const u16 highestIVMessageIndices[] = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

polish: sHighestIVMessageIndices

0x7E
// See message_bank_battle_tower.gmm
static const u16 highestIVMessageIndices[] = {
122,
Copy link
Collaborator

Choose a reason for hiding this comment

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

polish: Replace hard-coded indices with the generated constants from message encoding. (Check out build/res/text/bank/battle_tower.h to see what I mean; you can include that file like any other C header via #include "res/text/bank/battle_tower.h")

@lhearachel lhearachel merged commit 5a48355 into pret:main Feb 4, 2025
2 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 4, 2025
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