Algorithm to catch a pokemon
$ npm install --save catch-pokemon
const catchPokemon = require('catch-pokemon')
catchPokemon('Pikachu', 'masterball')
// => All right! Pikachu was caught!
returns a promise
Type: string
Required
Pokemon's name
Type: string
Options: pokeball
, masterball
, greatball
, ultraball
and safariball
Required
Pokeball's name
Type: object
Type: integer
Pokemon's hp
Type: integer
Pokemon's catch rate
Type: boolean
Default: false
Determine if pokemon is asleep
Type: boolean
Default: false
Determine if pokemon is frozen
Type: boolean
Default: false
Determine if pokemon is paralyzed
Type: boolean
Default: false
Determine if pokemon is burned
Type: boolean
Default: false
Determine if pokemon is poisoned
If hp
and catchRate
are passed it won't look up for these information on API (faster). Otherwise, it will try to find the Pokemon on the API.
- 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
- pokeball-shake — Algorithm to determine how many times pokeball shakes
- pokemon-capture-quote — Pokemon capture quote
- pokemon-f — Algorithm to calculate
f
on capture pokemon method
MIT © Bu Kinoshita