changes for new tx_randomizer_and_challenges

This commit is contained in:
TheXaman 2022-04-16 23:14:49 +02:00
parent a305e09fbd
commit edc46a9920

View file

@ -48,8 +48,8 @@
#include "constants/party_menu.h" #include "constants/party_menu.h"
#include "constants/rgb.h" #include "constants/rgb.h"
#include "constants/songs.h" #include "constants/songs.h"
#ifdef TX_DIFFICULTY_CHALLENGES_USED #ifdef TX_RANDOMIZER_AND_CHALLENGES
//#include "tx_difficulty_challenges.h" //#include "tx_randomizer_and_challenges.h"
#endif #endif
enum enum
@ -4660,7 +4660,7 @@ static void PrintCurrentSpeciesTypeInfo(u8 newEntry, u16 species)
dexNum = SpeciesToNationalPokedexNum(species); dexNum = SpeciesToNationalPokedexNum(species);
} }
//type icon(s) //type icon(s)
#ifdef TX_DIFFICULTY_CHALLENGES_USED #ifdef TX_RANDOMIZER_AND_CHALLENGES
type1 = GetTypeBySpecies(species, 1); type1 = GetTypeBySpecies(species, 1);
type2 = GetTypeBySpecies(species, 2); type2 = GetTypeBySpecies(species, 2);
#else #else
@ -8098,10 +8098,10 @@ static u8 PrintEvolutionTargetSpeciesAndMethod(u8 taskId, u16 species, u8 depth,
if (species == SPECIES_EEVEE) if (species == SPECIES_EEVEE)
isEevee = TRUE; isEevee = TRUE;
#ifdef TX_DIFFICULTY_CHALLENGES_USED #ifdef TX_RANDOMIZER_AND_CHALLENGES
if (gSaveBlock1Ptr->txRandEvolutionMethodes) //tx_difficulty_challenges if (gSaveBlock1Ptr->tx_Random_EvolutionMethodes) //tx_randomizer_and_challenges
{ {
species = GetEvolutionTargetSpeciesRandom(species, gSaveBlock1Ptr->txRandEvolutions, !gSaveBlock1Ptr->txRandChaos); species = GetEvolutionTargetSpeciesRandom(species, gSaveBlock1Ptr->tx_Random_Evolutions, !gSaveBlock1Ptr->tx_Random_Chaos);
if (species == SPECIES_NONE) if (species == SPECIES_NONE)
return SPECIES_NONE; return SPECIES_NONE;
} }
@ -8137,9 +8137,9 @@ static u8 PrintEvolutionTargetSpeciesAndMethod(u8 taskId, u16 species, u8 depth,
previousTargetSpecies = targetSpecies; previousTargetSpecies = targetSpecies;
targetSpecies = gEvolutionTable[species][i].targetSpecies; targetSpecies = gEvolutionTable[species][i].targetSpecies;
sPokedexView->sEvoScreenData.targetSpecies[sPokedexView->sEvoScreenData.numAllEvolutions++] = targetSpecies; sPokedexView->sEvoScreenData.targetSpecies[sPokedexView->sEvoScreenData.numAllEvolutions++] = targetSpecies;
#ifdef TX_DIFFICULTY_CHALLENGES_USED #ifdef TX_RANDOMIZER_AND_CHALLENGES
if (gSaveBlock1Ptr->txRandEvolutions && targetSpecies != SPECIES_NONE) //tx_difficulty_challenges if (gSaveBlock1Ptr->tx_Random_Evolutions && targetSpecies != SPECIES_NONE) //tx_randomizer_and_challenges
targetSpecies = GetSpeciesRandomSeeded(targetSpecies, TX_RANDOM_OFFSET_EVOLUTION, TRUE, !gSaveBlock1Ptr->txRandChaos); targetSpecies = GetSpeciesRandomSeeded(targetSpecies, TX_RANDOM_OFFSET_EVOLUTION, TRUE, !gSaveBlock1Ptr->tx_Random_Chaos);
#endif #endif
CreateCaughtBallEvolutionScreen(targetSpecies, base_x + depth_x*depth-9, base_y + base_y_offset*base_i, 0); CreateCaughtBallEvolutionScreen(targetSpecies, base_x + depth_x*depth-9, base_y + base_y_offset*base_i, 0);
HandleTargetSpeciesPrint(taskId, targetSpecies, previousTargetSpecies, base_x + depth_x*depth, base_y, base_y_offset, base_i, isEevee); //evolution mon name HandleTargetSpeciesPrint(taskId, targetSpecies, previousTargetSpecies, base_x + depth_x*depth, base_y, base_y_offset, base_i, isEevee); //evolution mon name