Include catch rate in Poke Ball item description so people stop asking what Rogue Balls do
parent
2b2b02ff2c
commit
001ad1f55e
|
@ -1,7 +1,7 @@
|
||||||
import * as Modifiers from './modifier';
|
import * as Modifiers from './modifier';
|
||||||
import { AttackMove, allMoves } from '../data/move';
|
import { AttackMove, allMoves } from '../data/move';
|
||||||
import { Moves } from "../data/enums/moves";
|
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 Pokemon, { EnemyPokemon, PlayerPokemon, PokemonMove } from '../field/pokemon';
|
||||||
import { EvolutionItem, SpeciesFriendshipEvolutionCondition, pokemonEvolutions } from '../data/pokemon-evolutions';
|
import { EvolutionItem, SpeciesFriendshipEvolutionCondition, pokemonEvolutions } from '../data/pokemon-evolutions';
|
||||||
import { Stat, getStatName } from '../data/pokemon-stat';
|
import { Stat, getStatName } from '../data/pokemon-stat';
|
||||||
|
@ -113,7 +113,7 @@ export interface GeneratedPersistentModifierType {
|
||||||
|
|
||||||
class AddPokeballModifierType extends ModifierType {
|
class AddPokeballModifierType extends ModifierType {
|
||||||
constructor(pokeballType: PokeballType, count: integer, iconImage?: string) {
|
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');
|
(_type, _args) => new Modifiers.AddPokeballModifier(this, pokeballType, count), iconImage, 'pb', 'pb_bounce_1');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue