From 49bb3453387b43cc6ce62f82c4f26f4582a030a7 Mon Sep 17 00:00:00 2001 From: ExpoSeed <> Date: Fri, 16 Apr 2021 20:36:45 -0500 Subject: [PATCH] Introduce NUM_ABILITY_SLOTS --- include/constants/pokemon.h | 2 ++ include/pokemon.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/constants/pokemon.h b/include/constants/pokemon.h index 51ef0c015b..1f66b83aa2 100644 --- a/include/constants/pokemon.h +++ b/include/constants/pokemon.h @@ -348,4 +348,6 @@ #define MON_PIC_SIZE (64 * 64 / 2) +#define NUM_ABILITY_SLOTS 2 + #endif // GUARD_CONSTANTS_POKEMON_H diff --git a/include/pokemon.h b/include/pokemon.h index 82cdefeac8..6e1d83576d 100644 --- a/include/pokemon.h +++ b/include/pokemon.h @@ -200,7 +200,7 @@ struct BaseStats /* 0x13 */ u8 growthRate; /* 0x14 */ u8 eggGroup1; /* 0x15 */ u8 eggGroup2; - /* 0x16 */ u8 abilities[2]; + /* 0x16 */ u8 abilities[NUM_ABILITY_SLOTS]; /* 0x18 */ u8 safariZoneFleeRate; /* 0x19 */ u8 bodyColor : 7; u8 noFlip : 1;