bukinoshita / pokemon-f

Algorithm to calculate `f` on capture pokemon method.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Algorithm to calculate `f` on capture pokemon method.

License:MIT License


Languages

Language:TypeScript 100.0%