diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-07-16 20:12:12 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2020-07-18 18:10:15 -0400 |
commit | aba42513d3a33cec1d8e6cd199b07317b2eece87 (patch) | |
tree | c2b84688631f2b659f5fcf1a3f19b61c7e63f144 /src/pokeblock.c | |
parent | 0c4f3b269ecc69ccd30f5529f120c9150d7798e8 (diff) |
Clean up some battle scr cmd data
Diffstat (limited to 'src/pokeblock.c')
-rw-r--r-- | src/pokeblock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokeblock.c b/src/pokeblock.c index 523c4ad91..506c5e4c4 100644 --- a/src/pokeblock.c +++ b/src/pokeblock.c @@ -117,7 +117,7 @@ EWRAM_DATA static struct PokeblockSavedData sSavedPokeblockData = {0}; EWRAM_DATA static struct PokeblockMenuStruct *sPokeblockMenu = NULL; // const rom data -const s8 gPokeblockFlavorCompatibilityTable[] = +const s8 gPokeblockFlavorCompatibilityTable[NUM_NATURES * FLAVOR_COUNT] = { // Cool, Beauty, Cute, Smart, Tough 0, 0, 0, 0, 0, // Hardy @@ -1386,7 +1386,7 @@ s16 PokeblockGetGain(u8 nature, const struct Pokeblock *pokeblock) { curGain = GetPokeblockData(pokeblock, flavor + PBLOCK_SPICY); if (curGain > 0) - totalGain += curGain * gPokeblockFlavorCompatibilityTable[5 * nature + flavor]; + totalGain += curGain * gPokeblockFlavorCompatibilityTable[FLAVOR_COUNT * nature + flavor]; } return totalGain; |