PokéRogue
    Preparing search index...

    Function adjustDamageMoveWeights

    • Adjust weights of damaging moves in a move pool based on their power and category

      Parameters

      • pool: Map<MoveId, number>

        The move pool to adjust

      • pokemon: Pokemon

        The Pokémon for which the moveset is being generated

      • willTera: boolean = false

        Whether the Pokémon is expected to Tera (i.e., has instant Tera on a Trainer Pokémon); default false

      Returns void

      Caps max power at 90 to avoid something like hyper beam ruining the stats. pokemon is a pretty soft weighting factor, although it is scaled with the weight multiplier.