Algorithm to determine how many times pokeball shakes
$ yarn add pokeball-shake
const pokeballShake = require('pokeball-shake')
const pokemonF = require('pokemon-f')
const f = await pokemonF(35, 'greatball', 29)
pokeballShake(163, 'greatball', f)
// => Pokeball shaked `2` time before pokemon goes free.
Type: number
Required
Pokemon's catch rate
Type: string
Options: pokeball
, greatball
, ultraball
and safariball
Required
Pokeball's name
Type: number
Required
Algorithm to calculate f
Use pokemon-f to calculate f
.
Type: number
Default: 0
Options:
12
if poisoned, burned, or paralyzed25
if frozen or asleep
- 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
MIT © Bu Kinoshita