PokéRogue
    Preparing search index...

    Function getAndWeightLevelMoves

    • Compute and assign a weight to the level-up moves currently available to the Pokémon

      Parameters

      • pokemon: Pokemon

        The Pokémon to generate a level-based move pool for

      Returns Map<MoveId, number>

      A map of move IDs to their computed weights

      A move's weight is determined by its level, as follows:

      1. If the level is an EVOLVE_MOVE move, weight is 60
      2. If it is level 1 with 80+ BP, it is considered a "move reminder" move and weight is 60
      3. If the Pokémon has a trainer and the move is a RELEARN_MOVE, weight is 60
      4. Otherwise, weight is the earliest level the move can be learned + 20