From 11dd0ea78693e6c638801b26bd63cd40e951273b Mon Sep 17 00:00:00 2001 From: TheXaman Date: Mon, 11 Oct 2021 23:25:53 +0200 Subject: [PATCH] added support for randomized evolutions and evo methods --- src/pokedex.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pokedex.c b/src/pokedex.c index 150728fad6..a119fd4c0c 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -46,6 +46,9 @@ #include "constants/party_menu.h" #include "constants/rgb.h" #include "constants/songs.h" +#ifdef TX_DIFFICULTY_CHALLENGES_USED + #include "tx_difficulty_challenges.h" +#endif enum { @@ -7603,6 +7606,10 @@ static u8 PrintEvolutionTargetSpeciesAndMethod(u8 taskId, u16 species, u8 depth, left = !left; targetSpecies = gEvolutionTable[species][i].targetSpecies; + #ifdef TX_DIFFICULTY_CHALLENGES_USED + if (gSaveBlock1Ptr->txRandEvolutions && targetSpecies != SPECIES_NONE) //tx_difficulty_challenges + targetSpecies = GetSpeciesRandomSeeded(targetSpecies, TX_RANDOM_OFFSET_EVOLUTION, TRUE, !gSaveBlock1Ptr->txRandChaos); + #endif CreateCaughtBallEvolutionScreen(targetSpecies, base_x + depth_x*depth-9, base_y + base_y_offset*base_i, 0); handleTargetSpeciesPrint(taskId, targetSpecies, base_x + depth_x*depth, base_y, base_y_offset, base_i); //evolution mon name