pokemon-f
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

/pokemon-f/

    Package Sidebar

    Install

    npm i pokemon-f

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.94 kB

    Total Files

    7

    Last publish

    Collaborators

    • bukinoshita