mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 23:44:49 -05:00
Add getValidMovesAllGens to return the valid moves list from every valid generation from a pokemon instead of one list with all generations mixed, for crossgen legal analysis
This commit is contained in:
@@ -548,6 +548,13 @@ private static EncounterArea[] getTables2(GameVersion Version)
|
||||
}
|
||||
|
||||
// Moves
|
||||
internal static int[][] getValidMovesAllGens(PKM pkm, DexLevel[][] evoChains, bool LVL = true, bool Tutor = true, bool Machine = true, bool MoveReminder = true, bool RemoveTransferHM = true)
|
||||
{
|
||||
int[][] Moves = new int[evoChains.Length][];
|
||||
for (int i = 1; i < evoChains.Length; i++)
|
||||
Moves[i] = getValidMoves(pkm, evoChains[i], i, LVL, Tutor, Machine, MoveReminder, RemoveTransferHM).ToArray();
|
||||
return Moves;
|
||||
}
|
||||
internal static IEnumerable<int> getValidMoves(PKM pkm, DexLevel[][] evoChains, bool LVL = true, bool Tutor = true, bool Machine = true, bool MoveReminder = true, bool RemoveTransferHM = true)
|
||||
{
|
||||
GameVersion version = (GameVersion)pkm.Version;
|
||||
|
||||
Reference in New Issue
Block a user