Update src/ui/pokemon-info-container.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
8b3a5ce6ae
commit
dab99d551e
|
@ -251,7 +251,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
|
||||||
const pokemonForm = (pokemon.species?.forms?.[pokemon.formIndex!]?.formKey) || "";
|
const pokemonForm = (pokemon.species?.forms?.[pokemon.formIndex!]?.formKey) || "";
|
||||||
let formName = "";
|
let formName = "";
|
||||||
if (pokemonForm !== "") {
|
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);
|
const speciesName = Utils.capitalizeString(Species[pokemon.species.getRootSpeciesId()], "_", true, false);
|
||||||
if (pokemon.species.speciesId === Species.ARCEUS) {
|
if (pokemon.species.speciesId === Species.ARCEUS) {
|
||||||
|
|
Loading…
Reference in New Issue