PokéRogue
    Preparing search index...
    • Randomly selects one of the Species from speciesPool, determines its evolution, level, and strength. Then adds Pokemon to globalScene.

      Parameters

      • speciesPool: readonly (SpeciesId | readonly SpeciesId[])[]

        The pool of species to choose from. Can be a list of SpeciesId or a list of lists of SpeciesId.

      • trainerSlot: TrainerSlot = TrainerSlot.TRAINER

        (default TRAINER); The trainer slot to generate for.

      • ignoreEvolution: boolean = false

        (default false); Whether to ignore evolution when determining the species to use.

      • OptionalpostProcess: (enemyPokemon: EnemyPokemon) => void

        An optional function to post-process the generated EnemyPokemon

      Returns (level: number, strength: PartyMemberStrength) => EnemyPokemon