PokéRogue
    Preparing search index...

    Function determineEnemySpecies

    • Determine the species of an enemy Pokémon, based on various factors.

      Parameters

      • species: PokemonSpecies

        The species to consider

      • level: number

        The level the Pokémon will be

      • allowEvolving: boolean = false

        Whether to allow evolution; default false

      • forTrainer: boolean = false

        Whether the Pokémon is for a trainer; default false

      • strength: PartyMemberStrength = PartyMemberStrength.WEAKER

        The strength of the party member; default Weaker

      • encounterKind: EvoLevelThresholdKind = ...

        The kind of evolution threshold to use; default EvoLevelThresholdKind.NORMAL | Normal for trainers, EvoLevelThresholdKind.WILD | Wild otherwise

      • tryForcePrevo: boolean = true

        Whether to skip checking for prevolutions. Should only be false when invoked recursively; default true

      Returns SpeciesId

      Passing a species with split evolutions will randomly choose one of its evolutions based on its level. Passing an evolved species may allow a pre-evolution to be chosen, based on its level, though if the pre-evolution has split evolutions, it will always choose from the species line that has the passed species

      calcEvoChance