From 001ad1f55e99ee6e6b5305acf2a525a394246815 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 29 Mar 2024 17:36:44 -0400 Subject: [PATCH] Include catch rate in Poke Ball item description so people stop asking what Rogue Balls do --- src/modifier/modifier-type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index cf4bbded4e1..d4006729b7b 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -1,7 +1,7 @@ import * as Modifiers from './modifier'; import { AttackMove, allMoves } from '../data/move'; import { Moves } from "../data/enums/moves"; -import { PokeballType, getPokeballName } from '../data/pokeball'; +import { PokeballType, getPokeballCatchMultiplier, getPokeballName } from '../data/pokeball'; import Pokemon, { EnemyPokemon, PlayerPokemon, PokemonMove } from '../field/pokemon'; import { EvolutionItem, SpeciesFriendshipEvolutionCondition, pokemonEvolutions } from '../data/pokemon-evolutions'; import { Stat, getStatName } from '../data/pokemon-stat'; @@ -113,7 +113,7 @@ export interface GeneratedPersistentModifierType { class AddPokeballModifierType extends ModifierType { constructor(pokeballType: PokeballType, count: integer, iconImage?: string) { - super(`${count}x ${getPokeballName(pokeballType)}`, `Receive ${getPokeballName(pokeballType)} x${count}`, + super(`${count}x ${getPokeballName(pokeballType)}`, `Receive ${getPokeballName(pokeballType)} x${count}\nCatch Rate: ${getPokeballCatchMultiplier(pokeballType) > -1 ? `${getPokeballCatchMultiplier(pokeballType)}x` : 'Certain'}`, (_type, _args) => new Modifiers.AddPokeballModifier(this, pokeballType, count), iconImage, 'pb', 'pb_bounce_1'); } }