Made Types and Egg Groups into arrays
This commit is contained in:
@@ -618,9 +618,9 @@ static void GetOpponentMostCommonMonType(void)
|
||||
for (i = 0; i < FRONTIER_PARTY_SIZE; i++)
|
||||
{
|
||||
u32 species = gFacilityTrainerMons[gFrontierTempParty[i]].species;
|
||||
typeCounts[gSpeciesInfo[species].type1]++;
|
||||
if (gSpeciesInfo[species].type1 != gSpeciesInfo[species].type2)
|
||||
typeCounts[gSpeciesInfo[species].type2]++;
|
||||
typeCounts[gSpeciesInfo[species].types[0]]++;
|
||||
if (gSpeciesInfo[species].types[0] != gSpeciesInfo[species].types[1])
|
||||
typeCounts[gSpeciesInfo[species].types[1]]++;
|
||||
}
|
||||
|
||||
// Determine which are the two most-common types.
|
||||
|
||||
Reference in New Issue
Block a user