mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Update src/data/pokemon-species.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
(cherry picked from commit c470c1e2e2
)
This commit is contained in:
parent
d1ae0425ae
commit
6ea7bc017b
@ -51,9 +51,11 @@ export function getPokemonSpeciesForm(species: Species, formIndex: integer): Pok
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getFusedSpeciesName(speciesA: PokemonSpecies, speciesB: PokemonSpecies): string {
|
export function getFusedSpeciesName(speciesA: PokemonSpecies, speciesB: PokemonSpecies): string {
|
||||||
//I WAS HERE, DON'T KNOW HOW TO MAKE THIS WORK
|
const prefix = i18next.t(`fusionAffixes:${Species[speciesA.speciesId].toLowerCase()}.fusionPrefix`);
|
||||||
// Basically the only thing missing is now to get the non local species name in lowercase
|
const suffix = i18next.t(`fusionAffixes:${Species[speciesB.speciesId].toLowerCase()}.fusionSuffix`);
|
||||||
return i18next.t(fusionAffixes:${speciesA}.fusionPrefix)+i18next.t(fusionAffixes:${speciesB}.fusionSuffix)
|
|
||||||
|
return `${prefix}${suffix}`;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user