Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.39 KB

readme.md

File metadata and controls

58 lines (37 loc) · 1.39 KB

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