Correctly capitalize Mega Evolved (#1527)

This commit is contained in:
AJ Fontaine 2024-05-28 23:55:05 -04:00 committed by GitHub
parent 92db0db2b7
commit 53200b2112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -321,7 +321,7 @@ export function getSpeciesFormChangeMessage(pokemon: Pokemon, formChange: Specie
const isRevert = !isMega && formChange.formKey === pokemon.species.forms[0].formKey; const isRevert = !isMega && formChange.formKey === pokemon.species.forms[0].formKey;
const prefix = !pokemon.isPlayer() ? pokemon.hasTrainer() ? "Foe " : "Wild " : "Your "; const prefix = !pokemon.isPlayer() ? pokemon.hasTrainer() ? "Foe " : "Wild " : "Your ";
if (isMega) { if (isMega) {
return `${prefix}${preName} mega-evolved\ninto ${pokemon.name}!`; return `${prefix}${preName} Mega Evolved\ninto ${pokemon.name}!`;
} }
if (isGmax) { if (isGmax) {
return `${prefix}${preName} Gigantamaxed\ninto ${pokemon.name}!`; return `${prefix}${preName} Gigantamaxed\ninto ${pokemon.name}!`;