pokeball-shake
Algorithm to determine how many times pokeball shakes
Install
$ yarn add pokeball-shake
Usage
const pokeballShake = const pokemonF = const f = await // => Pokeball shaked `2` time before pokemon goes free.
API
pokeballShake(catchRate, pokeball, f, [statusAilment])
catchRate
Type: number
Required
Pokemon's catch rate
pokeball
Type: string
Options: pokeball
, greatball
, ultraball
and safariball
Required
Pokeball's name
f
Type: number
Required
Algorithm to calculate f
Use pokemon-f to calculate f
.
statusAilment
Type: number
Default: 0
Options:
12
if poisoned, burned, or paralyzed25
if frozen or asleep
Related
- pokemon-game — Pokemon game — Get 'em all
- pokedex-api — Pokedex API
- pokemon-catch-probability — Check probabilty to catch a pokemon
- get-pokeball — Get pokeball information
- catch-pokemon — Algorithm to catch a pokemon
- pokemon-capture-quote — Pokemon capture quote
- pokemon-f — Algorithm to calculate
f
on capture pokemon method
License
MIT © Bu Kinoshita