mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00: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:
parent
007105b852
commit
2fd67b98ca
1 changed files with 7 additions and 0 deletions
|
@ -548,6 +548,13 @@ namespace PKHeX.Core
|
|||
}
|
||||
|
||||
// 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;
|
||||
|
|
Loading…
Add table
Reference in a new issue