mirror of
https://github.com/kwsch/pkNX.git
synced 2026-08-26 20:34:07 -05:00
Rework call for high powered moves
learn is a bit more complex; just add an overload with another param
This commit is contained in:
@@ -131,12 +131,7 @@ private int[] GetRandomMoves(int count, int index)
|
||||
return moves;
|
||||
}
|
||||
|
||||
public int[] GetHighPoweredMoves(int species, int form, int count = 4)
|
||||
{
|
||||
int index = Personal.GetFormeIndex(species, form);
|
||||
var learn = Learnsets[index];
|
||||
return learn.GetHighPoweredMoves(count, Moves);
|
||||
}
|
||||
internal int[] GetHighPoweredMoves(int species, int form, int count = 4) => GetHighPoweredMoves(Moves, species, form, count);
|
||||
|
||||
public int[] GetCurrentMoves(int species, int form, int level, int count = 4)
|
||||
{
|
||||
@@ -145,5 +140,12 @@ public int[] GetCurrentMoves(int species, int form, int level, int count = 4)
|
||||
Array.Resize(ref moves, count);
|
||||
return moves;
|
||||
}
|
||||
|
||||
public int[] GetHighPoweredMoves(Move[] movedata, int species, int form, int count = 4)
|
||||
{
|
||||
int index = Personal.GetFormeIndex(species, form);
|
||||
var learn = Learnsets[index];
|
||||
return learn.GetHighPoweredMoves(count, movedata);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user