PokéRogue
    Preparing search index...

    Function getAndWeightTmMoves

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

      Parameters

      • pokemon: Pokemon

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

      • currentPool: ReadonlyMap<MoveId, number>
      • eggPool: ReadonlyMap<MoveId, number>
      • tmPool: Map<MoveId, number>

        The TM move pool to add to, which will be modified in place

      Returns void

      A map of move IDs to their computed weights

      Only trainer pokemon can learn TM moves, and there are restrictions as to how many and which TMs are available based on the level of the Pokémon.

      1. Before level 25, no TM moves are available
      2. Between levels 25 and 40, only COMMON tier TMs are available,