Fixed docs

This commit is contained in:
Opaque02 2024-09-07 11:20:00 +10:00
parent 2c6cd55677
commit dc24233144
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ export function getPokeballName(type: PokeballType): string {
return ret;
}
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon, getBoostedDescription?: boolean): number {
export function getPokeballCatchMultiplier(type: PokeballType, enemyPokemon?: Pokemon | null, getBoostedDescription?: boolean): number {
const pokemon = enemyPokemon ?? null;
const description = getBoostedDescription ?? false;
switch (type) {

View File

@ -181,7 +181,7 @@ class AddPokeballModifierType extends ModifierType {
}
getDescription(scene: BattleScene): string {
let catchRate: String;
let catchRate: String = "";
if (this.pokeballType === PokeballType.ROGUE_BALL) {
catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", {
"normalCatchRate": getPokeballCatchMultiplier(this.pokeballType),