summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeokishisu <6993375+Deokishisu@users.noreply.github.com>2021-03-10 16:22:08 -0500
committerDeokishisu <6993375+Deokishisu@users.noreply.github.com>2021-03-10 16:22:08 -0500
commit0589bd582764cb84bc759943b727973dd9166bbd (patch)
tree77e73de8056e1f9804f76cb0e0229b363fb42fa7 /src
parent42b93f8359b07bc99516f5cf6cf1f42ec65ba029 (diff)
Fix Typos / Use Box Constants
The Celadon City scripts that give Eevee misspelled it as Eeevee. Fixed. The comment explaining `boxRSEggsUnlocked` in the `ExternalEventFlags` struct had an incorrect deposit requirement listed and was fixed. Also, replaced the literals with the `TOTAL_BOXES_COUNT` and `IN_BOX_COUNT` constants in `pokemon.c`'s `IsPokemonStorageFull` function. Thanks hjk321 for pointing that out.
Diffstat (limited to 'src')
-rw-r--r--src/pokemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index f58aee9b3..b523c4cb9 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -3799,8 +3799,8 @@ static bool8 IsPokemonStorageFull(void)
{
s32 i, j;
- for (i = 0; i < 14; i++)
- for (j = 0; j < 30; j++)
+ for (i = 0; i < TOTAL_BOXES_COUNT; i++)
+ for (j = 0; j < IN_BOX_COUNT; j++)
if (GetBoxMonDataAt(i, j, MON_DATA_SPECIES) == SPECIES_NONE)
return FALSE;