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: Pokemon | undefined

        The Pokemon to retrieve the name of. Will return "MissingNo." as a fallback if undefined

      • useIllusion: boolean = true

        (Default true) Whether we want the name of the illusion or not

      Returns string

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