summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-02-22 11:26:52 -0500
committerGitHub <noreply@github.com>2021-02-22 11:26:52 -0500
commit12c7dab2194f707daf51a9da13b0b38e2f856a04 (patch)
treeb333d98e65ce3821061a1f956dd396a5bc688df9 /include
parent5351028d7e00acb885bf81aab46b03d2be6f34d8 (diff)
parentfc16ee9498c8283a2bb520f524409999ba27612b (diff)
Merge pull request #396 from hjk321/storage-magic
Change embarassing magic numbers that should have been fixed a long time ago
Diffstat (limited to 'include')
-rw-r--r--include/pokemon.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/pokemon.h b/include/pokemon.h
index 3460b76dd..6a9b657ea 100644
--- a/include/pokemon.h
+++ b/include/pokemon.h
@@ -4,6 +4,7 @@
#include "global.h"
#include "sprite.h"
#include "constants/pokemon.h"
+#include "pokemon_storage_system.h"
struct PokemonSubstruct0
{
@@ -125,9 +126,9 @@ struct Pokemon
struct PokemonStorage
{
/*0x0000*/ u8 currentBox;
- /*0x0001*/ struct BoxPokemon boxes[14][30];
- /*0x8344*/ u8 boxNames[14][BOX_NAME_LENGTH + 1];
- /*0x83C2*/ u8 boxWallpapers[14];
+ /*0x0001*/ struct BoxPokemon boxes[TOTAL_BOXES_COUNT][IN_BOX_COUNT];
+ /*0x8344*/ u8 boxNames[TOTAL_BOXES_COUNT][BOX_NAME_LENGTH + 1];
+ /*0x83C2*/ u8 boxWallpapers[TOTAL_BOXES_COUNT];
};
struct BattleTowerPokemon