Change VC1 pokemon tradeback initial status to allow VC2 origin, there is no way to know if the pokemon was traded to gen7 after or before VC2 release

Do not allow gen1 evolutions for VC2 pokemon without gen1 evolutions or preevolutions
This commit is contained in:
javierhimura 2017-09-23 12:58:46 +02:00
parent 0b6446b980
commit efc60c3bf8
2 changed files with 6 additions and 11 deletions

View file

@ -224,16 +224,11 @@ namespace PKHeX.Core
else
pkm.TradebackStatus = TradebackType.Any;
}
else if (pkm.VC1)
{
// If VC2 is ever released, we can assume it will be TradebackType.Any.
// Met date cannot be used definitively as the player can change their system clock.
pkm.TradebackStatus = TradebackType.Gen1_NotTradeback;
}
else
{
pkm.TradebackStatus = TradebackType.Any;
}
// VC2 is released, we can assume it will be TradebackType.Any.
// Met date cannot be used definitively as the player can change their system clock.
// Is impossible to difference between a VC1 pokemon trade to gen7 after or before VC2 release.
pkm.TradebackStatus = TradebackType.Any;
}
private void UpdateTypeInfo()
{

View file

@ -1459,7 +1459,7 @@ namespace PKHeX.Core
{
var CompleteEvoChain = GetEvolutionChain(pkm, Encounter).ToArray();
int maxgen = pkm.Format == 1 && !pkm.Gen1_NotTradeback ? 2 : pkm.Format;
int mingen = pkm.Format == 2 && !pkm.Gen2_NotTradeback || pkm.Format >= 7 && pkm.GenNumber < 3 ? 1 : pkm.GenNumber;
int mingen = (pkm.Format == 2 || pkm.VC2) && !pkm.Gen2_NotTradeback ? 1 : pkm.GenNumber;
DexLevel[][] GensEvoChains = new DexLevel[maxgen + 1][];
for (int i = 0; i <= maxgen; i++)
GensEvoChains[i] = new DexLevel[0];