add `Pokemon.getEggMoves()`
This commit is contained in:
parent
28d14ae45a
commit
d8fce8b245
|
@ -1319,6 +1319,15 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of all egg moves
|
||||
*
|
||||
* @returns list of egg moves
|
||||
*/
|
||||
getEggMoves() : Moves[] {
|
||||
return speciesEggMoves[this.species.speciesId];
|
||||
}
|
||||
|
||||
setMove(moveIndex: integer, moveId: Moves): void {
|
||||
const move = moveId ? new PokemonMove(moveId) : null;
|
||||
this.moveset[moveIndex] = move;
|
||||
|
|
Loading…
Reference in New Issue