-
Notifications
You must be signed in to change notification settings - Fork 110
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
clean up encounter.c #208
clean up encounter.c #208
Conversation
ready for review :) |
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.
Only 302/373 files viewed but I have 33 comments and github web is lagging
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.
336/373 I hope red realizes that I'm not merging until all these changes are addressed
src/overlay_36.c
Outdated
@@ -40,9 +40,9 @@ static BOOL ov36_App_InitGameState_AfterOakSpeech_AppExit(OVY_MANAGER* man, int* | |||
static BOOL ov36_TitleScreen_NewGame_AppInit(OVY_MANAGER* man, int* state); |
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.
Do we have enough info to name overlay_36?
src/party.c
Outdated
BOOL Party_SwapSlots(PARTY *party, int slotA, int slotB) { | ||
PARTY_EXTRA_SUB tmp_PARTY_EXTRA_SUB; | ||
BOOL Party_SwapSlots(Party *party, int slotA, int slotB) { | ||
PartyExtraSub tmp_PartyExtraSub; | ||
Pokemon *tmp_POKEMON; |
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.
fix these local variable names please
storage->boxModifiedFlag = 0; | ||
} | ||
|
||
u32 PCStorage_GetBoxModifiedFlags(PC_STORAGE* storage) { | ||
u32 PCStorage_GetBoxModifiedFlags(PCStorage* storage) { | ||
return storage->boxModifiedFlag; | ||
} | ||
|
||
u32 sub_02074120(void) { |
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.
PCBox_sizeof
src/scrcmd_battle.c
Outdated
@@ -15,28 +15,28 @@ | |||
BOOL ScrCmd_GetTrainerPathToPlayer(ScriptContext *ctx) { |
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.
Can we clean up the local variable names in this function please?
src/scrcmd_c.c
Outdated
@@ -164,7 +164,7 @@ BOOL ScrCmd_Wait(ScriptContext* ctx) { | |||
} | |||
|
|||
static BOOL RunPauseTimer(ScriptContext* ctx) { | |||
u16* frames_to_wait = GetVarPointer(ctx->fsys, ctx->data[0]); | |||
u16* frames_to_wait = GetVarPointer(ctx->fieldSystem, ctx->data[0]); |
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.
alot of the local variables in this file contradict our style conventions
#208 split PR 1, rename party
bd3f21c
to
51df5f8
Compare
1129ca3
to
75c3424
Compare
#208 split PR 2, rename fsys to fieldSystem
#208 split PR 3, rename savedata to saveData
4c219bb
to
6d1b845
Compare
@PikalaxALT review addressed |
Declining to review due to the habitual squashing of commits deleting progress from previous review. |
the comments should still be present, plus, given that you have requested changes before, according to the repo rules, all who have requested changes that have write access must approve for a PR to be merged (unless I bypass branch protections) |
#208 split PR 4, rename some misc funcs
Review references commits that were rebased out of existence.
Up to Battle Random functions start cleaning up encounter.c fix build fix build again remove two files from bad rebase switch fully to battle type constants rename TRAINER to Trainer few more funcs finish cleanup address some review comments de-capitalise std_script
Some state machine reviews were left unaddressed but am approving for the sake of letting red work on other things |
WIP and currently extremely messy, will need cleaning up and finishing before review