mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-15 02:35:20 -05:00
Tweks in function InhabitedGeneration to take into account future gen evolutions and GB-GBC transfer
This commit is contained in:
@@ -421,7 +421,20 @@ internal static int getMaxSpeciesOrigin(int generation)
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
internal static int[] getFutureGenEvolutions(int generation)
|
||||
{
|
||||
switch (generation)
|
||||
{
|
||||
case 1: return FutureEvolutionsGen1;
|
||||
case 2: return FutureEvolutionsGen2;
|
||||
case 3: return FutureEvolutionsGen3;
|
||||
case 4: return FutureEvolutionsGen4;
|
||||
case 5: return FutureEvolutionsGen5;
|
||||
default: return new int[0];
|
||||
}
|
||||
}
|
||||
|
||||
internal static int getMaxSpeciesOrigin(PKM pkm)
|
||||
{
|
||||
if (pkm.Format == 1 || pkm.VC1) // Gen1 VC could not trade with gen 2 yet
|
||||
|
||||
@@ -114,5 +114,10 @@ public static partial class Legal
|
||||
new EncounterSlot1 {Species = 118, LevelMin = 10, LevelMax = 10, Type = SlotType.Good_Rod, Rate = -1, }, // Goldeen
|
||||
new EncounterSlot1 {Species = 060, LevelMin = 10, LevelMax = 10, Type = SlotType.Good_Rod, Rate = -1, }, // Poliwag
|
||||
}};
|
||||
|
||||
internal static readonly int[] FutureEvolutionsGen1 =
|
||||
{
|
||||
169,182,186,196,197,199,208,212,230,233,242,462,463,464,465,466,467,470,471,474,700
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,5 +36,10 @@ public static partial class Legal
|
||||
10, 00, 00, 00, 00
|
||||
};
|
||||
internal static readonly int[] WildPokeBalls2 = { 4 };
|
||||
|
||||
internal static readonly int[] FutureEvolutionsGen2 =
|
||||
{
|
||||
424,429,430,461,462,463,464,465,466,467,468,469,470,471,472,473,474,700
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,5 +82,10 @@ public static partial class Legal
|
||||
590, 591, 592, 593
|
||||
};
|
||||
internal static readonly int[] WildPokeBalls3 = {1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12};
|
||||
|
||||
internal static readonly int[] FutureEvolutionsGen3 =
|
||||
{
|
||||
407,424,429,430,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,700
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,5 +130,10 @@ public static partial class Legal
|
||||
17, 18, 19, 20, 21, 22,
|
||||
// Comp Ball not usable in wild
|
||||
};
|
||||
|
||||
internal static readonly int[] FutureEvolutionsGen4 =
|
||||
{
|
||||
700
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,5 +89,10 @@ public static partial class Legal
|
||||
// HGSS balls not usable
|
||||
// Dream ball not usable in wild
|
||||
};
|
||||
|
||||
internal static readonly int[] FutureEvolutionsGen5 =
|
||||
{
|
||||
700
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user