-
Notifications
You must be signed in to change notification settings - Fork 93
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
Conversation
asm/macros/scrcmd.inc
Outdated
@@ -4077,7 +4077,7 @@ | |||
.short 749 | |||
.endm | |||
|
|||
.macro ScrCmd_2EE arg0, arg1, arg2, arg3 | |||
.macro ScrCmd_JudgeStats arg0, arg1, arg2, arg3 |
There was a problem hiding this comment.
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).
src/overlay005/ov5_021F6454.c
Outdated
0x7D, | ||
0x7E | ||
// See message_bank_battle_tower.gmm | ||
static const u16 highestIVMessageIndices[] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polish: sHighestIVMessageIndices
src/overlay005/ov5_021F6454.c
Outdated
0x7E | ||
// See message_bank_battle_tower.gmm | ||
static const u16 highestIVMessageIndices[] = { | ||
122, |
There was a problem hiding this comment.
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"
)
I renamed
ScrCmd_2EE
toScrCmd_JudgeStats
and documented it. That function is basically just for the stats judge (scientist guy in the battle tower) to decide what to say.