Stores data associated with a specific egg and the hatched pokemon Allows hatch info to be stored at hatch then retrieved for display during egg summary

Constructors

Properties

dexEntryBeforeUpdate: DexEntry

stored copy of the hatched pokemon's dex entry before it was updated due to hatch

eggMoveIndex: number

index of the egg move from the hatched pokemon (not stored in PlayerPokemon)

eggMoveUnlocked: boolean

boolean indicating if the egg move for the hatch is new

pokemon: PlayerPokemon

the pokemon that hatched from the file (including shiny, IVs, ability)

starterDataEntryBeforeUpdate: StarterDataEntry

stored copy of the hatched pokemon's starter entry before it was updated due to hatch

Methods

  • Stores a copy of the current DexEntry of the pokemon and StarterDataEntry of its starter Used before updating the dex, so comparing the pokemon to these entries will show the new attributes

    Returns void

  • Sets the boolean for if the egg move for the hatch is a new unlock

    Parameters

    • unlocked: boolean

      True if the EM is new

    Returns void

  • Update the pokedex data corresponding with the new hatch's pokemon data Also sets whether the egg move is a new unlock or not

    Parameters

    • showMessage: boolean = false

      boolean to show messages for the new catches and egg moves (false by default)

    Returns Promise<void>