PokéRogue
    Preparing search index...

    Function getAndWeightEggMoves

    • Compute and assign a weight to the egg moves currently available to the Pokémon

      Parameters

      • pokemon: Pokemon

        The Pokémon to generate egg moves for

      • levelPool: ReadonlyMap<MoveId, number>

        The map of level-based moves to their weights

      • eggPool: Map<MoveId, number>

        A map of move IDs to their weights for egg moves that will be modified in place

      Returns void

      This function checks if the Pokémon meets the requirements to learn egg moves, and if allowed, calculates the weights for regular and rare egg moves using the provided pools.