diff options
author | Garak <thomastaps194@comcast.net> | 2018-07-07 20:50:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-07 20:50:41 -0400 |
commit | 6c5d1c4a3de2f1a2d1855a542a6a5d53e4daf936 (patch) | |
tree | e9a140e919d72891ea825b64fc72a9cfa175ce88 /src/script_pokemon_util_80F99CC.c | |
parent | c4cc1522c86ec240c53c75455b650b1c69b2d5a4 (diff) | |
parent | 9238533346fd97c67e48fee33a204d1e8e2dd0a7 (diff) |
Merge pull request #9 from pret/master
sync with source repo
Diffstat (limited to 'src/script_pokemon_util_80F99CC.c')
-rw-r--r-- | src/script_pokemon_util_80F99CC.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/script_pokemon_util_80F99CC.c b/src/script_pokemon_util_80F99CC.c index b292265a6..87ef2517b 100644 --- a/src/script_pokemon_util_80F99CC.c +++ b/src/script_pokemon_util_80F99CC.c @@ -19,7 +19,7 @@ #include "text.h" #include "ewram.h" -extern const u8 gUnknown_08208238[]; +extern const u8 gPPUpReadMasks[]; extern u8 gPlayerPartyCount; extern u16 gSpecialVar_0x8004; @@ -307,11 +307,11 @@ void sub_80F9FDC(struct Pokemon *pkmn, u8 moveIndex1, u8 moveIndex2) u8 pp2 = GetMonData(pkmn, MON_DATA_PP1 + moveIndex2); u8 bonuses = GetMonData(pkmn, MON_DATA_PP_BONUSES); - u8 r2 = (bonuses & gUnknown_08208238[moveIndex1]) >> (moveIndex1 * 2); - u8 r1 = (bonuses & gUnknown_08208238[moveIndex2]) >> (moveIndex2 * 2); + u8 r2 = (bonuses & gPPUpReadMasks[moveIndex1]) >> (moveIndex1 * 2); + u8 r1 = (bonuses & gPPUpReadMasks[moveIndex2]) >> (moveIndex2 * 2); - bonuses &= ~gUnknown_08208238[moveIndex1]; - bonuses &= ~gUnknown_08208238[moveIndex2]; + bonuses &= ~gPPUpReadMasks[moveIndex1]; + bonuses &= ~gPPUpReadMasks[moveIndex2]; bonuses |= (r2 << (moveIndex2 * 2)) + (r1 << (moveIndex1 * 2)); SetMonData(pkmn, MON_DATA_MOVE1 + moveIndex1, &move2); |