mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-04 12:46:10 +00:00
Fixed docs
This commit is contained in:
parent
2c6cd55677
commit
dc24233144
@ -49,7 +49,7 @@ export function getPokeballName(type: PokeballType): string {
|
|||||||
return ret;
|
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 pokemon = enemyPokemon ?? null;
|
||||||
const description = getBoostedDescription ?? false;
|
const description = getBoostedDescription ?? false;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
@ -181,7 +181,7 @@ class AddPokeballModifierType extends ModifierType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getDescription(scene: BattleScene): string {
|
getDescription(scene: BattleScene): string {
|
||||||
let catchRate: String;
|
let catchRate: String = "";
|
||||||
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),
|
||||||
|
Loading…
Reference in New Issue
Block a user