Updated docs v2

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

View File

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

View File

@ -185,7 +185,7 @@ class AddPokeballModifierType extends ModifierType {
if (this.pokeballType === PokeballType.ROGUE_BALL) { if (this.pokeballType === PokeballType.ROGUE_BALL) {
catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", { catchRate = i18next.t("modifierType:ModifierType.AddPokeballModifierType.catchRateGenerator", {
"normalCatchRate": getPokeballCatchMultiplier(this.pokeballType), "normalCatchRate": getPokeballCatchMultiplier(this.pokeballType),
"boostedCatchRate": getPokeballCatchMultiplier(this.pokeballType, null, true), "boostedCatchRate": getPokeballCatchMultiplier(this.pokeballType, undefined, true),
}); });
} else if (this.pokeballType !== PokeballType.MASTER_BALL) { } else if (this.pokeballType !== PokeballType.MASTER_BALL) {
catchRate = `${getPokeballCatchMultiplier(this.pokeballType)}x`; catchRate = `${getPokeballCatchMultiplier(this.pokeballType)}x`;