Skip to content

Algorithm to calculate `f` on capture pokemon method.

License

Notifications You must be signed in to change notification settings

bukinoshita/pokemon-f

Repository files navigation

pokemon-f Build Status

Algorithm to calculate f on capture pokemon method

Install

$ yarn add pokemon-f

Usage

import { pokemonF } from 'pokemon-f'

pokemonF(35, 'pokeball', 23)
// => 129

API

pokemonF(hpMax, pokeball, hpCurrent)

hpMax

Type: number
Required

Pokemon HPMax

pokeball

Type: string
Options: pokeball, greatball, ultraball and safariball
Required

Pokeball's name

hpCurrent

Type: number
Required

Pokemon current HP

Related

License

MIT © Bu Kinoshita