Add evo data for alolan raichu / weezing

Ban the evolution methods since they can't be triggered in-game
allows the gen8 evo tree to reverse evolve past gen specimens
This commit is contained in:
Kurt 2020-02-16 18:16:22 -08:00
parent ee38e6890b
commit 0e2734d2d5
2 changed files with 4 additions and 2 deletions

View File

@ -176,9 +176,11 @@ private void FixEvoTreeSS()
{
// Gigantamax Pikachu, Meowth-0, and Eevee are prevented from evolving.
BanEvo((int)Species.Raichu, 0, pkm => pkm is IGigantamax g && g.CanGigantamax);
BanEvo((int)Species.Raichu, 1, pkm => pkm is IGigantamax g && g.CanGigantamax);
BanEvo((int)Species.Raichu, 1, pkm => pkm is IGigantamax g && g.CanGigantamax || pkm.Gen8);
BanEvo((int)Species.Persian, 0, pkm => pkm is IGigantamax g && g.CanGigantamax);
BanEvo((int)Species.Weezing, 0, pkm => pkm.Gen8);
foreach (var s in GetEvolutions((int)Species.Eevee, 0)) // Eeveelutions
BanEvo(s, 0, pkm => pkm is IGigantamax g && g.CanGigantamax);
}
@ -312,7 +314,7 @@ private List<EvoCriteria> GetExplicitLineage(PKM pkm, int maxLevel, bool skipChe
bool oneValid = false;
foreach (var link in node)
{
if (link.IsEvolutionBanned(pkm))
if (link.IsEvolutionBanned(pkm) && !skipChecks)
continue;
var evo = link.Method;