Allowing pokemon name translation (#228)

* Allow pokemon name translation

* Improve Pokemon localization

---------

Co-authored-by: Flashfyre <flashfireex@gmail.com>
This commit is contained in:
GwendalandFlashfyre authored and GitHub committed 2024-04-21 19:53:24 -04:00
1 parent 1a53c19e3b
commit 8d7f1ae554
15 files changed
+3300 -1103

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ class AddPokeballModifierType extends ModifierType implements Localizable {
this.count = count;
}
localize() {
localize(): void {
this.name = `${this.count}x ${getPokeballName(this.pokeballType)}`;
this.description = `Receive ${getPokeballName(this.pokeballType)} x${this.count}\nCatch Rate: ${getPokeballCatchMultiplier(this.pokeballType) > -1 ? `${getPokeballCatchMultiplier(this.pokeballType)}x` : 'Certain'}`;
}