Review pokemon storage system chaanges
This commit is contained in:
@@ -4722,7 +4722,7 @@ u8 SendMonToPC(struct Pokemon* mon)
|
||||
|
||||
do
|
||||
{
|
||||
for (boxPos = 0; boxPos < 30; boxPos++)
|
||||
for (boxPos = 0; boxPos < IN_BOX_COUNT; boxPos++)
|
||||
{
|
||||
struct BoxPokemon* checkingMon = GetBoxedMonPtr(boxNo, boxPos);
|
||||
if (GetBoxMonData(checkingMon, MON_DATA_SPECIES, NULL) == SPECIES_NONE)
|
||||
@@ -4739,7 +4739,7 @@ u8 SendMonToPC(struct Pokemon* mon)
|
||||
}
|
||||
|
||||
boxNo++;
|
||||
if (boxNo == 14)
|
||||
if (boxNo == TOTAL_BOXES_COUNT)
|
||||
boxNo = 0;
|
||||
} while (boxNo != StorageGetCurrentBox());
|
||||
|
||||
@@ -4889,8 +4889,8 @@ 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user