add `Pokemon.getEggMoves()`

This commit is contained in:
Felix Staud 2024-07-12 12:56:51 -07:00
parent 28d14ae45a
commit d8fce8b245
1 changed files with 9 additions and 0 deletions

View File

@ -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;