-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
GetSideParty/GetBattlerParty #2910
Conversation
|
||
static inline struct Pokemon *GetBattlerParty(u32 battlerId) | ||
{ | ||
extern u8 GetBattlerSide(u8 battler); |
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.
I could have added #include "battle_anim.h"
to the top of this file instead of declaring GetBattlerSide
. I don't really mind which approach is chosen.
GetBattlerPartyData already exists so I think GetBattlerParty is redundant |
I don't think they do the same thing— |
Oh I gotcha. How about GetBattlerPartySource? |
"Source" doesn't really mean anything imo |
I don't care, then. This PR is simple enough to not be dragged down by semantics. |
Inline GetBattlerPartyData into its callers because its name is confusing and we couldn't think of a better one. This seems to fix a bug in one place where GetBattlerPartyData was being used as if it had GetBattlerParty semantics.
ac458df
to
aefe582
Compare
fix conflicts |
Very minor change, introduces
GetSideParty
andGetBattlerParty
for two reasonably common patterns: