PokéRogue
    Preparing search index...

    Function getEggPoolForSpecies

    • Submethod of getAndWeightEggMoves that adds egg moves for a specific species to the egg move pool

      Parameters

      • rootSpeciesId: SpeciesId

        The ID of the root species for which to generate the egg move pool.

      • levelPool: ReadonlyMap<MoveId, number>

        A readonly map of move IDs to their levels, representing moves already learned by leveling up.

      • eggPool: Map<MoveId, number>

        A map to be populated with egg move IDs and their corresponding weights.

      • eggMoveWeight: number

        The default weight to assign to regular egg moves.

      • excludeRare: boolean

        If true, excludes rare egg moves

      • rareEggMoveWeight: number = 0

        The weight to assign to rare egg moves; default 0

      Returns void

      • Moves present in levelPool are excluded from the egg pool.
      • If excludeRare is true, rare egg moves (at index 3) are skipped.
      • Rare egg moves are assigned rareEggMoveWeight, while others receive eggMoveWeight.