From dd011d517e89f8e9ae136d2fdf380f4713e1cf04 Mon Sep 17 00:00:00 2001 From: TheXaman Date: Mon, 11 Oct 2021 23:00:54 +0200 Subject: [PATCH] improved "x_difficulty_challenges" compatibility --- src/pokedex.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pokedex.c b/src/pokedex.c index 61bd77b15d..150728fad6 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -7566,6 +7566,15 @@ static u8 PrintEvolutionTargetSpeciesAndMethod(u8 taskId, u16 species, u8 depth, StringCopy(gStringVar1, gSpeciesNames[species]); + #ifdef TX_DIFFICULTY_CHALLENGES_USED + if (gSaveBlock1Ptr->txRandEvolutionMethodes) //tx_difficulty_challenges + { + species = GetEvolutionTargetSpeciesRandom(species, gSaveBlock1Ptr->txRandEvolutions, !gSaveBlock1Ptr->txRandChaos); + if (species == SPECIES_NONE) + return SPECIES_NONE; + } + #endif + //Calculate number of possible direct evolutions (e.g. Eevee has 5 but torchic has 1) for (i = 0; i < EVOS_PER_MON; i++) {