pokemon-f

Algorithm to calculate `f` on capture pokemon method

Usage no npm install needed!

<script type="module">
  import pokemonF from 'https://cdn.skypack.dev/pokemon-f';
</script>

README

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