Check if player escape from battle with wild Pokemon and get probability of escaping
$ npm install --save pokemon-player-escape
const pokemonPlayerEscape = require('pokemon-player-escape')
pokemonPlayerEscape.escape(25, 100)
// => false
pokemonPlayerEscape.probability(100, 100)
// => 0.6171875 (61%)
Returns a boolean
. If true
player's pokemon escape.
Type: integer
Required
Player's Pokemon speed
Type: integer
Required
Wild Pokemon speed
Type: integer
Default: 0
Number of times player's pokemon tried to escape
Returns a number
.
Type: integer
Required
Player's Pokemon speed
Type: integer
Required
Wild Pokemon speed
Type: integer
Default: 0
Number of times player's pokemon tried to escape
- pokemon-game — Pokemon game — Get 'em all
- pokemon-escape
- catch-pokemon — Algorithm to catch a pokemon
- 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