PokéRogue
    Preparing search index...

    Function getPokemonNameWithAffix

    • Retrieves the Pokemon's name, potentially with an affix indicating its role (wild or foe) in the current battle context, translated

      Parameters

      • pokemon: undefined | Pokemon

        The Pokemon to retrieve the name of. Will return 'Missingno' as a fallback if null/undefined

      • useIllusion: boolean = true

        Whether we want the name of the illusion or not; default true

      Returns string

      The localized name of pokemon complete with affix. Ex: "Wild Gengar", "Ectoplasma sauvage"

      Remove this and switch to using i18n context selectors based on pokemon trainer class - this causes incorrect locales