1.0.0 • Published 4 years ago

pokemon-f v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

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