Additional SPECIES_* documentation.
This commit is contained in:
parent
9ca27f1332
commit
d6b31346c3
5 changed files with 12 additions and 11 deletions
|
@ -526,7 +526,7 @@ static void sub_81A67EC(void)
|
|||
}
|
||||
var_40 = sub_81A6F70(factoryBattleMode, factoryLvlMode);
|
||||
|
||||
currSpecies = 0;
|
||||
currSpecies = SPECIES_NONE;
|
||||
i = 0;
|
||||
while (i != PARTY_SIZE)
|
||||
{
|
||||
|
@ -546,7 +546,7 @@ static void sub_81A67EC(void)
|
|||
break;
|
||||
if (species[j] == gFacilityTrainerMons[monSetId].species)
|
||||
{
|
||||
if (currSpecies == 0)
|
||||
if (currSpecies == SPECIES_NONE)
|
||||
currSpecies = gFacilityTrainerMons[monSetId].species;
|
||||
else
|
||||
break;
|
||||
|
@ -561,7 +561,7 @@ static void sub_81A67EC(void)
|
|||
if (heldItems[j] != 0 && heldItems[j] == gBattleFrontierHeldItems[gFacilityTrainerMons[monSetId].itemTableId])
|
||||
{
|
||||
if (gFacilityTrainerMons[monSetId].species == currSpecies)
|
||||
currSpecies = 0;
|
||||
currSpecies = SPECIES_NONE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -579,7 +579,7 @@ static void sub_81A67EC(void)
|
|||
static void sub_81A6A08(void)
|
||||
{
|
||||
u8 i;
|
||||
u8 typesCount[18];
|
||||
u8 typesCount[NUMBER_OF_MON_TYPES];
|
||||
u8 usedType[2];
|
||||
|
||||
gFacilityTrainerMons = gBattleFrontierMons;
|
||||
|
|
|
@ -2122,12 +2122,12 @@ static void sub_8038B94(u8 taskId)
|
|||
if (species != SPECIES_EGG && hp != 0 && status == 0)
|
||||
r7 |= 1 << i * 2;
|
||||
|
||||
if (species == 0)
|
||||
if (species == SPECIES_NONE)
|
||||
continue;
|
||||
if (hp != 0 && (species == SPECIES_EGG || status != 0))
|
||||
r7 |= 2 << i * 2;
|
||||
|
||||
if (species == 0)
|
||||
if (species == SPECIES_NONE)
|
||||
continue;
|
||||
if (species != SPECIES_EGG && hp == 0)
|
||||
r7 |= 3 << i * 2;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "string_util.h"
|
||||
#include "constants/items.h"
|
||||
#include "constants/region_map_sections.h"
|
||||
#include "constants/species.h"
|
||||
|
||||
// This file's functions.
|
||||
static void sub_81B99D4(void);
|
||||
|
@ -292,7 +293,7 @@ static void sub_81B9EC0(void)
|
|||
heldItems[i] = 0;
|
||||
}
|
||||
gFacilityTrainerMons = gSlateportBattleTentMons;
|
||||
currSpecies = 0;
|
||||
currSpecies = SPECIES_NONE;
|
||||
i = 0;
|
||||
while (i != PARTY_SIZE)
|
||||
{
|
||||
|
@ -305,7 +306,7 @@ static void sub_81B9EC0(void)
|
|||
break;
|
||||
if (species[j] == gFacilityTrainerMons[monSetId].species)
|
||||
{
|
||||
if (currSpecies == 0)
|
||||
if (currSpecies == SPECIES_NONE)
|
||||
currSpecies = gFacilityTrainerMons[monSetId].species;
|
||||
else
|
||||
break;
|
||||
|
@ -320,7 +321,7 @@ static void sub_81B9EC0(void)
|
|||
if (heldItems[j] != 0 && heldItems[j] == gBattleFrontierHeldItems[gFacilityTrainerMons[monSetId].itemTableId])
|
||||
{
|
||||
if (gFacilityTrainerMons[monSetId].species == currSpecies)
|
||||
currSpecies = 0;
|
||||
currSpecies = SPECIES_NONE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -497,7 +497,7 @@ static void Task_Hof_InitTeamSaveData(u8 taskId)
|
|||
|
||||
for (i = 0; i < HALL_OF_FAME_MAX_TEAMS; i++, lastSavedTeam++)
|
||||
{
|
||||
if (lastSavedTeam->mon[0].species == 0)
|
||||
if (lastSavedTeam->mon[0].species == SPECIES_NONE)
|
||||
break;
|
||||
}
|
||||
if (i >= HALL_OF_FAME_MAX_TEAMS)
|
||||
|
|
2
src/tv.c
2
src/tv.c
|
@ -3231,7 +3231,7 @@ u16 TV_GetSomeOtherSpeciesAlreadySeenByPlayer(u16 passedSpecies)
|
|||
initSpecies = species;
|
||||
while (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), FLAG_GET_SEEN) != TRUE || species == passedSpecies)
|
||||
{
|
||||
if (species == 1)
|
||||
if (species == SPECIES_NONE + 1)
|
||||
{
|
||||
species = NUM_SPECIES - 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue