Update src/ui/pokemon-info-container.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Lugiad 2024-09-10 14:24:30 +02:00 committed by GitHub
parent 8b3a5ce6ae
commit dab99d551e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
const pokemonForm = (pokemon.species?.forms?.[pokemon.formIndex!]?.formKey) || "";
let formName = "";
if (pokemonForm !== "") {
const formText = Utils.capitalizeString(pokemonForm, "-", false, false); // TODO: is the bang correct?
const formText = Utils.capitalizeString(pokemonForm, "-", false, false);
const speciesName = Utils.capitalizeString(Species[pokemon.species.getRootSpeciesId()], "_", true, false);
if (pokemon.species.speciesId === Species.ARCEUS) {