mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 17:26:11 +00:00
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;
|
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 {
|
setMove(moveIndex: integer, moveId: Moves): void {
|
||||||
const move = moveId ? new PokemonMove(moveId) : null;
|
const move = moveId ? new PokemonMove(moveId) : null;
|
||||||
this.moveset[moveIndex] = move;
|
this.moveset[moveIndex] = move;
|
||||||
|
Loading…
Reference in New Issue
Block a user